Hi ,
I have 1136 variable block input file which has 2000 records .I need to read all the records at same time instead of reading one by one .
And in the input file, i have field-1 (column-1) which can be repeated 2 to 3 times in file with same value .
I need to move the same field-1 value to working storage field of line 1
eg :
input file
11111111111111123467dfdfjhjlfjhlkgjlkjlhk*
111111111111111sdjfdlkdlkgfggkggggggggg*
222222222222222eeeeeeeeeeeeeeeeerrfddf*
22222222222222dfmgfdmgggggggggggggfgf*
11111111111111sdfdsgfggggggggggggggggg*
while writing to output it should be written in 2 lines (one with 1111111111111111 and another with 2222222222222) : i need to increase the length of output file also
11111111111111123467dfdfjhjlfjhlkgjlkjlhk*111111111111111sdjfdlkdlkgfggkggggggggg*11111111111111sdfdsgfggggggggggggggggg*
222222222222222eeeeeeeeeeeeeeeeerrfddf*22222222222222dfmgfdmgggggggggggggfgf*
It would be great help if some one help me on this .