You need to provide the information Frank requested to your earlier reply to the other topic. . .

Quote:

If you want a DFSORT solution, post it in the DFSORT Forum. Otherwise, post it in the JCL Forum. Show an example of the records in the input file (relevent 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 each relevant field.

Please post some sample input data (not a high volume, but enough to demonstrate the requirement) and the output you want from that input. When posting code, control statements, or data, it is best to use the "Code" tag for readability.

It will help if you also post some actual input records and the output you want when these are processed. Show the actual data and headers for the relevant positions of the input and output. This does not need to be a high volume of data - just enough to demonstrate the requirement/rules.

If we can see "what data you have" and "what data you need" it will help us help you.