I have close to 25000+ flat files of different record lengths and record format (FB/VB). My requirement is to create a report with file name and 30 bytes of first record of corresponding file. If the input file is less than 30 bytes, the output record can be written with padded spaces.
Input:
TEST.OTHR.FILE1
TEST.OTHR.FILE2
TEST.OTHR.FILE3
TEST.OTHR.FILE4
Output report to be created in a file with the following as records in it:
TEST.OTHR.FILE1 - UHDR2021002
TEST.OTHR.FILE2 - …………..
TEST.OTHR.FILE3 - HEADER20210102
TEST.OTHR.FILE4 -
TEST.OTHR.FILE1
TEST.OTHR.FILE2
TEST.OTHR.FILE3
TEST.OTHR.FILE4
Output report to be created in a file with the following as records in it:
TEST.OTHR.FILE1 - UHDR2021002
TEST.OTHR.FILE2 - …………..
TEST.OTHR.FILE3 - HEADER20210102
TEST.OTHR.FILE4 -
In the above example, TEST.OTHR.FILE2 has low values in it as the first record. TEST.OTHR.FILE4 is empty.
Is it possible to be done using DFSORT?
Thanks
Prasanna G