shashi0505 Beginner
Joined: 20 Jun 2005 Posts: 7 Topics: 4
|
Posted: Wed Nov 23, 2005 1:25 am Post subject: Using varibales inside JCL |
|
|
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 |
|