Hi Fred,
The interpretation of JCL occurs before the execution starts. Hence, your result. If you were to SUBMIT your JCL to the internal reader in STEP02 (rather than trying to execute the BKUP Cataloged Procedure), the new jobĀ  would read the updated BKUP PROC.

Regards,
David

On 2020-12-22 12:11, Fred Kaptein wrote:
Hello,
I would like to build a JCL batch job called BACKUPS, that does the following:
1) STEP01
     Create a JCL proc in MYLIB.PROCLIB(BKUP)
2) STEP02
     Execute the proc MYLIB.PROCLIB(BKUP)

My testing finds that STEP02 runs the proc in MYLIB.PROCLIB(BKUP) that was 
built prior to submitting job BACKUPS.

Is there a way to do these two steps in one job and not two?

Thanks

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to