I have a Sequential File having Length = 80, RECFM=FB. File has only One Record. My Requirement is using SORT I want to have Same Record (Input File Record) To be written 100 Times in the Output File & with Each Record there should be an Associated Sequence Number. Below is Format of I/P File & O/P File.
Input File:
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y
Output File:
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y 0001
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y 0002
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y 0003
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y 0004
.....
.....
.....
.....
00000000166100012003-03-31-14.08.04.740000A2010-10-11Y 0100
Here In O/P File 0001,0002,0003,0004 ............. 0100 is SEQUENCE NUMBER.
Note: O/P File has Same Attribute as I/P File I.e. LRECL = 80, RECFM = FB.
Vineet Anand