I have one input dataset, which contains two different layouts of records. I need to convert numeric amount form to text form in output. Amount positions are different in two layouts. When writing to output I want it to be in single output.
Input record contains two layouts, One layout contains Word "Offset" and then set of next layout records. So is there any chance to write condition based on this "offset" keyword.
Presently I am using JCL that is converting and splitting both layout records in to two outputs (using OUTFIL), and finally I am merging manually. Please help me.
You can use IFTHEN clauses to handle different record layouts in different ways. But if you want more specific help on this, you need to show an example of the records in your input file (relevant fields only) and what you expect for output. Give the RECFM and LRECL of the input file. Give the starting position, length and format of all relevant fields.
Presently I am using JCL that is converting and splitting both layout records in to two outputs (using OUTFIL), and finally I am merging manually
Show the control statements you're using to do create the two outputs. That might make it easier to show you how to convert them to IFTHEN clauses.