Hi everyone,
I used Backward reference to execute two execution steps in jcl statements. If the execution program is of same kind for both the steps(i.e., IEBGENER FOR STEP1 & STEP2)its getting executed, but if i use (IEBGENER FOR STEP1 AND SORT FOR STEP2) , only step1 is being executed.
I'l provide you the statements below, kindly guide me to get knowledge in this.
//JOB STATEMNT
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=******.FINANCE.EMP,DISP=SHR
//SYSUT2 DD DSN=*****.BACK.EMP,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,10)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD *
/*
//
//STEP2 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=*.STEP1.SYSUT1,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(5,2,CH,A)
/*
//
Only Step1 i.e., IEBGENER is getting executed , sorting is not getting executed.
RECORDS IN FINANCE.EMP
001 cse 1005
002 ece 1111
008 mec 1007
014 cse 1222
077 aaa 1453
088 sss 1000
015 mmm 1005
Kindly guide me what may be wrong in this.
Kind regards
gyaa