dick scherrer wrote:Hello,
It would have been much more helpful if you had shown some sample input and the output you wanted when you rn your process.
You now mention a "trailer". DFSORT can generate a trailer, but we would need to know what it should contain. Maybe i've misread or i'm old and work better with actual data . . . Read sbout TRAILER1 and COUNT=.
Some of us should be available for a while yet . . .
Here is what you are looking for.. I am giving you the layout from fileaid. As none of the data are in ZD format, I am not able to provide you the exact sample file data here.
All the detail and trailer record are redefines of Header. Please let me know if the below details are enough. The input and the output are having the same layout except for the header(input is concatenated so more headers but output should have only one header) and trailer count modified (only one trailer record at the end with the count of detailed records). The detailed records should be sorted in ascending order based on the partition number.
Header Layout:
Partition number: s9(4) comp.
Header ID:x(8) Low values
Current Date:s9(9) comp-3.
Filler X(19).
Detail Record:
Partition number:s9(4) comp.
Branch Number:s9(9) comp.
Account Number:s9(9) comp.
Item Type: S9(4) comp.
Txn Count: s9(11)v9(02) comp.
Filler X(14)
Trailer:
Partition Number:s9(4) comp.
Trailer ID:x(8) High Values.
Record Count: s9(9) comp.
Filler x(20)
Partition number: s9(4) comp.
Header ID:x(8) Low values
Current Date:s9(9) comp-3.
Filler X(19).
Detail Record:
Partition number:s9(4) comp.
Branch Number:s9(9) comp.
Account Number:s9(9) comp.
Item Type: S9(4) comp.
Txn Count: s9(11)v9(02) comp.
Filler X(14)
Trailer:
Partition Number:s9(4) comp.
Trailer ID:x(8) High Values.
Record Count: s9(9) comp.
Filler x(20)
Thanks
Prasanna G.