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 

Using varibales inside JCL

 
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
shashi0505
Beginner


Joined: 20 Jun 2005
Posts: 7
Topics: 4

PostPosted: Wed Nov 23, 2005 1:25 am    Post subject: Using varibales inside JCL Reply with quote

Hi,

I came across the following code in one of the JCL's I was refering :

//*%%SET %%ABC = %%SUBSTR %%TIME 1 4

In a later step, it is using the varible %%ABC :

//PX2 EXEC PGM=prog,
// PARM='WERT%%ABC'

So, how exactly the above code work?

Guess the value of %%ABC differs( I think it picks up HHMM (hours,minutes)).

Does the above syntax work for all JCL's ?

Basically, I need to allocate a dataset within the JCL having a differenrtDSN name for each run, & then pass this DSN name as a PARM to my Program. Any suggestions how can I achive it ?

Thanks in advance,
shashi
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 23, 2005 2:25 am    Post subject: Reply with quote

shashi0505,

Please search before posting. Infact there was a post just before yours which discusses on a similar issue.

Check this link
http://mvsforums.com/helpboards/viewtopic.php?t=5244

Thanks,
Phantom
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