View previous topic :: View next topic
|
Author |
Message |
i.see.the.truth
New User
Joined: 21 Sep 2007 Posts: 8 Location: CHENNAI
|
|
|
|
How do we the get the jobname of JCL running the cobol program? Is it possible through the ACCEPT statement ?
Thanks & Regards
Soumen |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It is possible to find out what you want. I did it by using the Search button at the top of any page.
There are good examples just waiting for you when you use the search button. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You could certainly use the symbol translator utility EZACFSM1 and translate the &JOBNAME system variable into the actual jobname, and write the output to a dataset, which you can then read in from your program (ACCEPT or READ, your call). |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
i.see.the.truth
New User
Joined: 21 Sep 2007 Posts: 8 Location: CHENNAI
|
|
|
|
can this be done inside a cobol program, i wanted to get the jobname inside a cobol program not using any subprogram |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|