Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ACCEPT JOBNAME IN COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
i.see.the.truth

New User


Joined: 21 Sep 2007
Posts: 8
Location: CHENNAI

PostPosted: Tue Jun 22, 2010 7:56 pm    Post subject: ACCEPT JOBNAME IN COBOL
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 22, 2010 8:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Jun 22, 2010 8:12 pm    Post subject: Reply to: ACCEPT JOBNAME IN COBOL
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 22, 2010 8:36 pm    Post subject: Reply to: ACCEPT JOBNAME IN COBOL
Reply with quote

The below link might work for you -

http://www.ibmmainframes.com/viewtopic.php?p=167434&highlight=#167434

Bill
Back to top
View user's profile Send private message
i.see.the.truth

New User


Joined: 21 Sep 2007
Posts: 8
Location: CHENNAI

PostPosted: Tue Jun 22, 2010 9:48 pm    Post subject: Reply to: ACCEPT JOBNAME IN COBOL
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Jun 22, 2010 9:52 pm    Post subject: Reply to: ACCEPT JOBNAME IN COBOL
Reply with quote

How about Sample COBOL program to retrieve and display job-related information.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 4 Wed Mar 29, 2017 12:47 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us