Warm greeting!!
I have a requirement that need to split a JCL File that contains more than 500 steps in it, I need to split JCL file for every 200 steps and write into an another file.
sample jcl:
details:
1.STEP Numbers are sequential and every step ends with a delimiter "/*"
2.INPUT JCL FILE FORMAT = FB , RECORD LENGTH = 80
//PS0001 EXEC PGM=PKZIP,
//SYSPRINT DD SYSOUT=U
//SYSOUT DD SYSOUT=U
//SYSUDUMP DD SYSOUT=V
//INPUT DD DSN=USER.V0002,DISP=SHR
//OUTPUT DD DSN=USER.V0002066.ZIP,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=U,BLKSIZE=27998)
//SYSIN DD *
-ECHO
-INDD(INPUT)
-ARCHOUTDD(OUTPUT)
-TEXT
-PASSWORD(TEST)
-NIA(USER.V0002,V0002066.TXT)
/*
.
.
.
.
.
.
//PS0517 EXEC PGM=PKZIP,
//SYSPRINT DD SYSOUT=U
//SYSOUT DD SYSOUT=U
//SYSUDUMP DD SYSOUT=V
//INPUT DD DSN=USER.V1999,DISP=SHR
//OUTPUT DD DSN=USER.V1999066.ZIP,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=U,BLKSIZE=27998)
//SYSIN DD *
-ECHO
-INDD(INPUT)
-ARCHOUTDD(OUTPUT)
-TEXT
-PASSWORD(TEST)
-NIA(USER.V1999,V1999066.TXT)
/*
//SYSPRINT DD SYSOUT=U
//SYSOUT DD SYSOUT=U
//SYSUDUMP DD SYSOUT=V
//INPUT DD DSN=USER.V0002,DISP=SHR
//OUTPUT DD DSN=USER.V0002066.ZIP,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=U,BLKSIZE=27998)
//SYSIN DD *
-ECHO
-INDD(INPUT)
-ARCHOUTDD(OUTPUT)
-TEXT
-PASSWORD(TEST)
-NIA(USER.V0002,V0002066.TXT)
/*
.
.
.
.
.
.
//PS0517 EXEC PGM=PKZIP,
//SYSPRINT DD SYSOUT=U
//SYSOUT DD SYSOUT=U
//SYSUDUMP DD SYSOUT=V
//INPUT DD DSN=USER.V1999,DISP=SHR
//OUTPUT DD DSN=USER.V1999066.ZIP,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=U,BLKSIZE=27998)
//SYSIN DD *
-ECHO
-INDD(INPUT)
-ARCHOUTDD(OUTPUT)
-TEXT
-PASSWORD(TEST)
-NIA(USER.V1999,V1999066.TXT)
/*
Kindly suggest me how to split this FILE for every 200 steps and write into a new file.
Regards,
Ramsee