On Tue, Apr 9, 2019 at 7:23 AM David Cameron <[email protected]> wrote:

> Hi All,
>
> is there a way to retrieve the job (or step) JCL from a program running in
> that step ?
>

Personally, I likely start by looking at the SWA.

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.ieaa800/iea3a8_Accessing_the_scheduler_work_area.htm

Or you could use the SDSF API. Curiously, to me, the only examples in the
book are in REXX and Java. Nothing about using an HLL like COBOL or HLASM.

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.isfa600/rexx.htm



>
> it appears there are some JES2 HDBs that contain the JCL statements in
> high
> private storage
>
> Thanks,
> David Cameron
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>


-- 
I just burned 2000 calories!
That's the last time I'll nap with brownies in the oven.

Maranatha! <><
John McKown

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

Reply via email to