i have file 100 records.first recod will go output1 and second record goes tp output2 and third records goes to output3 and agiain fouth record goes to output1 in files in cobol

Created on July 23, 2021, 8:11 a.m. - by Ravi, Pasupuleti


i have file 100 records.first recod will go output1 and second record goes tp output2 and third records goes to output3 and agiain fouth record goes to output1  in files in cobol


Comments (2)

Dheepansundaravelu, P
Aug. 7, 2021, 4:27 p.m.

Try using SPLIT functionality in DFSORT, where keep the output files for file1 and file 4 to be the same with DISP as MOD, CATLG, DELETE.


Tanmoy, Chakraborty
Aug. 10, 2021, 12:08 p.m.
//SPLIT1R EXEC PGM=ICEMAN

............

 

//SYSIN DD *
  SORT FIELDS=(21,5,FS,A)
  OUTFIL FNAMES=(OUT1,OUT2,OUT3),SPLIT1R=4
/*

Copyright 2020 by ibmmainframer. All Rights Reserved.