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 difference between &MNTH and %CMM

 
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: Fri Apr 06, 2007 7:21 am    Post subject: what difference between &MNTH and %CMM Reply with quote

The following JCL will be run on opc. I want to know the difference
between &MNTH and %CMM ?
Code:

//SYSUT2  DD  DSN=AU0ENC.BE.EXTRACT.&MNTH%CMM.,                         
//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=32720,TRTCH=NOCOMP),         
//         LABEL=(1,SL),STORCLAS=SCNOSMS,                             
//         UNIT=3490,VOL=(,RETAIN,SER=CMDX01),EXPDT=98000         

&MNTH <== will be replaced by variable defined at opc.     
%CMM <==  what's meaning? what difference with &MNTH ?

_________________
cheers,
Andy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Apr 06, 2007 10:14 am    Post subject: Reply with quote

ANDY,

MNTH is a your variable defined to OPC.

CMM is a 2 byte date related jcl variable which gives you Current month in MM format

Check this link for the definition of other date related JCL variables in OPC

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EQQ2QR00/6.3?DT=19930804142128

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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