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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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