IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get the JES2 job number within the job?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rsubram

New User


Joined: 09 Sep 2005
Posts: 1

PostPosted: Fri Sep 09, 2005 1:37 pm
Reply with quote

Hi

Is there any way to get the current job number (JES2 job number) within
the job? I need this number to be passed on to subsequent steps and COBOL
programs as a parameter. If there is a way to get this information by
calling some APIs from COBOL program it would be fantastic.

Thanks
Ramkumar
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Fri Sep 09, 2005 5:24 pm
Reply with quote

I think that Rexx can do this using STORAGE to access to the memory and accept the number of job but I'm not able to do this. In this forum there are other members really expert in this and I think that they can help you more.
Using Cobol I have not idea.

I hope in this help
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Sep 09, 2005 7:36 pm
Reply with quote

Check this link for a COBOL method:

gsf-soft.com/Freeware/COB2JOB.shtml

The REXX method has been posted here previously.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:


Back to Top