Joseph,
You may get a definitive statement for this, possibly not.
My analysis is as follows.
Looking in the JCL Reference manual I found the following,
Relationship of a JOBLIB to a STEPLIB
Use a STEPLIB DD statement to define a private library for one job step
in a job. If you include a STEPLIB
DD statement for a job step and a JOBLIB DD statement for the entire
job, the system first searches the
step library and then the system library for the requested program. The
system ignores the job library for
a step that has a STEPLIB DD statement.
Thus it appears that the STEPLIB or JOBLIB is specified as a TASKLIB on the
ATTACH macro for a JOBSTEP task.
So if a STEPLIB is specified there is no need for a DCB for the JOBLIB.
If no STEPLIB is specified but JOBLIB is specified, then I would expect a
JOBLIB DCB to be built for that step.
So while the DCB of the JOBLIB may not be available when STEPLIB is specified,
there is probably a way to get at the scheduler control blocks for the job and
identify the DSNAME of the JOBLIB from the JCL. If you can find that then you
could then build your DCB and open it if you wished.
Not sure why you would want to though!
Lennie Dymoke-Bradshaw
https://rsclweb.com
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Joseph Reichman
Sent: 18 December 2024 14:13
To: [email protected]
Subject: Value of TCBJLB
Hi
The comment next to this data area says it’s a pointer to a joblib DCB
This however is only If you don’t have a steplib
In your job
If you have one it’s the steplib dcb
If you have both a Joblib and a steplib
It’s the value of the steplib
Then my question becomes if you have a joblib and a steplib and tcbjlb points
to the steplib
In this case Can you get the address of the dcb of the the joblib
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