View previous topic :: View next topic |
Author |
Message |
ANDY Beginner

Joined: 07 Feb 2004 Posts: 127 Topics: 67
|
Posted: Thu Jul 22, 2004 3:01 am Post subject: What does % stand for in a JCL ? |
|
|
//INCADV DD DSN=OPTV.INVOICE.FILE.&MNTH%CMM.,DISP=SHR
What is meaning for &MNTH%CMM ? _________________ cheers,
Andy |
|
Back to top |
|
 |
Meg Beginner

Joined: 08 Jul 2003 Posts: 44 Topics: 16
|
Posted: Thu Jul 22, 2004 3:51 am Post subject: |
|
|
Andy,
In the above statement &MNTH means it is a symbolic parameter in the JCL and MNTH can be set a value in the JCL or PROC. for eg if we have MNTH=JAN in your JCL the dataset name would be
OPTV.INVOICE.FILE.MON%CMM
With respect to %CMM, In our project we genrally have it is as symbol which we change it using REXX.
For eg, a rexx routine would be executed on the JCL and do a change all %CMM to the required value before submitting. For eg, the REXX routine would do a c all %CMM to CMM01. Then the dataset name would be OPTV.INVOICE.FILE.MONCMM01. I am guessing that this would be applicable to your JCL too.
Thanks,
Meg |
|
Back to top |
|
 |
ANDY Beginner

Joined: 07 Feb 2004 Posts: 127 Topics: 67
|
Posted: Thu Jul 22, 2004 6:51 am Post subject: |
|
|
Dear Meq:
Thank you for your responce. But this statement is in JCL not at PROC, I think this JCL is relative with OPC. _________________ cheers,
Andy |
|
Back to top |
|
 |
gkreth Beginner

Joined: 28 May 2004 Posts: 29 Topics: 10
|
Posted: Thu Jul 22, 2004 9:37 am Post subject: |
|
|
Andy,
Symbolic parms are not just for procs; they can be intialized with a SET statement, and then used in the instream JCL as well. If you had this:
Code: | //SET MNTH=JAN
...
//INCADV DD DSN=OPTV.INVOICE.FILE.&MNTH,DISP=SHR |
The DSN would resolve as OPTV.INVOICE.FILE.JAN
Sorry, I can't help out with the "%" part, but it probably has to do with REXX.....
--Greg |
|
Back to top |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Thu Jul 22, 2004 10:25 am Post subject: |
|
|
Perhaps OPC is replacing %CMM prior to submission to JES? I have seen this in other JCL management products. |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
|
Back to top |
|
 |
|
|