It took me a while to discern the difference between ASSBJBNx and
ASCBJBNx. I initially thought you were repeating yourself :-).

Yet another way to skin this cat is to go from ASSBJSAB -> JSABJBNM.
The JSAB also has the JOB ID (among other things, of course).

sas

On Fri, Jan 12, 2018 at 7:49 AM, Peter Relson <[email protected]> wrote:
> FWIW,
>
> If I want to get the jobname, I use ASSBJBNI (ASSBJBNS if this is a
> started task).
>
> If ASSBJBNI first byte is not x'00' then use ASSBJBNI
> else use ASSBJBNS
>
> PSAAOLD -> ASCBASSB -> ASSBxxxx.
>
> This has been available for going on 25 years. And prior to that (and you
> can still use this if you're within the scope of the running job), you
> could locate the 8-byte jobname using the addresses in ASCBJBNI (when not
> 0) or ASCBJBNS which have been available "forever".
>
> Getting the step name is a different matter, as that is in the TIOT.
>
> Peter Relson
> z/OS Core Technology Design
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN



-- 
sas

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

Reply via email to