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 

What does % stand for in a 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
ANDY
Beginner


Joined: 07 Feb 2004
Posts: 127
Topics: 67

PostPosted: Thu Jul 22, 2004 3:01 am    Post subject: What does % stand for in a JCL ? Reply with quote

//INCADV DD DSN=OPTV.INVOICE.FILE.&MNTH%CMM.,DISP=SHR

What is meaning for &MNTH%CMM ?
_________________
cheers,
Andy
Back to top
View user's profile Send private message
Meg
Beginner


Joined: 08 Jul 2003
Posts: 44
Topics: 16

PostPosted: Thu Jul 22, 2004 3:51 am    Post subject: Reply with quote

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
View user's profile Send private message
ANDY
Beginner


Joined: 07 Feb 2004
Posts: 127
Topics: 67

PostPosted: Thu Jul 22, 2004 6:51 am    Post subject: Reply with quote

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
View user's profile Send private message
gkreth
Beginner


Joined: 28 May 2004
Posts: 29
Topics: 10

PostPosted: Thu Jul 22, 2004 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Bithead
Advanced


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

PostPosted: Thu Jul 22, 2004 10:25 am    Post subject: Reply with quote

Perhaps OPC is replacing %CMM prior to submission to JES? I have seen this in other JCL management products.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Jul 22, 2004 2:42 pm    Post subject: Reply with quote

There are many OPC supplied variables. Read about them here http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EQQD2000/21.1.5?DT=19970430135403.

Through an exit routine, your site can define other variables, too.

Regards,
Bill
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