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
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.
//SPLIT1R EXEC PGM=ICEMAN
............
//SYSIN DD * SORT FIELDS=(21,5,FS,A) OUTFIL FNAMES=(OUT1,OUT2,OUT3),SPLIT1R=4 /*