job steps execution disorder
Posted: Thu Sep 27, 2018 2:10 pm
Hi!
I have written a JCL which has 2 steps. in the first step, a procedure is called and executed:
In the second step, a program is called and executed:
When I submit this job, Step 2 is executed sooner. But I need it to be executed after step 1 finished.
can anyone help me why this happens?
I am new to JCL, if my question is easy.
Thanks.
I have written a JCL which has 2 steps. in the first step, a procedure is called and executed:
//STEP1 EXEC ACBJBAOB,
// TABL2=IBMUSER.TEST.ISPTABL
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
PROFILE PREFIX(SYS1)
ISPSTART CMD(ACBQBAS1 ALTER +
SCDS(DFSMS.SCDS) +
STCNAME(STGCLS1) +
GURNTSPC(Y) +
)
// TABL2=IBMUSER.TEST.ISPTABL
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
PROFILE PREFIX(SYS1)
ISPSTART CMD(ACBQBAS1 ALTER +
SCDS(DFSMS.SCDS) +
STCNAME(STGCLS1) +
GURNTSPC(Y) +
)
In the second step, a program is called and executed:
//step2 EXEC PGM=IEFBR14
//C1 COMMAND 'SETSMS SCDS(SYS1.DFSMS.SCDS)'
//C1 COMMAND 'SETSMS SCDS(SYS1.DFSMS.SCDS)'
When I submit this job, Step 2 is executed sooner. But I need it to be executed after step 1 finished.
can anyone help me why this happens?
I am new to JCL, if my question is easy.
Thanks.