Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 2504
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: 4650
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. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us