Hi All,
Can someone please tell me how to do submit a next JOB once previous JOB has completed.
I know it can be done very easily via Scheduler, but I wanna have it in our Test Lpar where we do not have scheduler.
Background:-
I wanna create a JCL which will execute 12 jobs using IEBGENER , INTRDR.
Sample step:-
TESTCS1 EXEC PGM=IEBGENER,COND=(0,LT)
SYSIN DD DUMMY
SYSPRINT DD SYSOUT=*
SYSUT1 DD DSN=XXXX.YYYYY(JCL1),DISP=SHR
SYSUT2 DD SYSOUT=(R,INTRDR)
**____________________________________________________________
TESTCS2 EXEC PGM=IEBGENER,COND=(0,LT)
SYSIN DD DUMMY
SYSPRINT DD SYSOUT=*
SYSUT1 DD DSN=XXXX.YYYYY(JCL2),DISP=SHR
SYSUT2 DD SYSOUT=(R,INTRDR)
Now what I want is once the JCL1 gets completed , JCL2 gets triggered.
At present both the JCL1 and JCL2 will get triggered simultaneously.
Regards
Anurag