Editorial / Best Answer
jjtharappel
Run a JCL with the below sort step
Code
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=input-file-name,DISP=SHR
//SORTOF01 DD DSN=output-file-name-1,
// DISP=(NEW,CATLG,DELETE),
// SPACE=...
// LRECL=...,RECFM=FB
//SORTOF02 DD DSN=output-file-name-2,
// DISP=(NEW,CATLG,DELETE),
// SPACE=...
// LRECL=...,RECFM=FB
//SORTOF03 DD DSN=output-file-name-3,
// DISP=(NEW,CATLG,DELETE),
// SPACE=...
// LRECL=...,RECFM=FB
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOF01,
INCLUDE=(cond for file 1)
OUTFIL FNAMES=SORTOF02,
INCLUDE=(cond for file 2)
OUTFIL FNAMES=SORTOF03,
INCLUDE=(cond for file 3)
/*
//*
How do you split a file data into multiple files?
Profile Answers by Manjula Pathakamuri Questions by Manjula Pathakamuri
Questions by Manjula Pathakamuri
Editorial / Best Answer
jjtharappelProfile Answers by jjtharappel Questions by jjtharappel
Run a JCL with the below sort step
Related Answered Questions
Related Open Questions