Try &SYSJOBNM.

Roger W. Suhr

[email protected]

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Colin Paice
Sent: Friday, December 16, 2022 4:07
To: [email protected]
Subject: Can I get the true jobname in JCL

If I start OMPROUTE.OMP1, or issue Start OMPROUTE,JOBNAME=OMP1, can I get the
OMP1 as a JCL symbol so I can use it to pick up different configuration members?
I can crawl around the control blocks and create a symbol - but want a 
supported solution.

If I use &JOBNAME I get JES2.

Colin

----------------------------------------------------------------------
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