"Within JCL, the substitution text for &JOBNAME is the name of the job assigned 
to the address
space in which the JCL is converted, not the name of the job being processed. 
For instance, if
JES2 does the conversion, &JOBNAME resolves to JES2."


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Gadi Ben-Avi [[email protected]]
Sent: Wednesday, December 29, 2021 9:02 AM
To: [email protected]
Subject: Using the JOBNAME system symbol in a batch job

Hi,

How do I use the JOBNAME system symbol in a batch job and have it resolve to 
the JOBNAME?

Currently, every time I try, it resolved to JES2.

We are running z/OS v2.4.

Thanks

Gadi


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