MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get the Jobname wihin a program executed by the job.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
vsathya
Beginner


Joined: 07 Jan 2003
Posts: 1
Topics: 1
Location: Greenville SC USA

PostPosted: Wed Aug 03, 2005 1:38 pm    Post subject: How to get the Jobname wihin a program executed by the job. Reply with quote

How can we get the Jobname within a program being executed by the job. Is there any registers that will hold his information and accessible by the program ?

The use of JCL parm or symbolics is ruled out for my specification.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Wed Aug 03, 2005 1:59 pm    Post subject: Reply with quote

In assembler, it is very easy to get the jobname, but I have no idea how to get it in another language.

In assem, it is in the TIOT, which is pointed to by your TCB, which you can get from the PSA (low storage). Here is a code snip without macros, but I included the field names in case you want to include the proper IBM DSECTs.

L Rx,X'021C' L Rx,PASTOLD GET TCB ADDRESS
L Rx,12(Rx) L Rx,TCBTIO GET TIOT ADDRESS
MVC JOBNAME,0(Rx) MVC JOBNAME,TIOTNJOB GET JOBNAME
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Aug 03, 2005 2:18 pm    Post subject: Reply with quote

Perform a search on this site for "Gilbert Saint-Flour" and you will find this link

http://mvsforums.com/helpboards/viewtopic.php?t=1657&highlight=jobname
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group