Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use of %% in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rakeshcr36

New User


Joined: 20 Feb 2007
Posts: 1
Location: tvpm

PostPosted: Wed Jun 11, 2008 6:01 pm    Post subject: Use of %% in JCL
Reply with quote

Hi,

My jcl contains many %% symbols.I dont understand the meaning of %% in JCL.
sample jcl I am attaching here

%%SET %%COMMENT = SET_DEFAULT_PRODUCTION_VARIABLES
%%RESOLVE NO
%%SET %%T0A001 = %%SUBSTR %%LVL 1 1
%%SET %%T0A002 = %%SUBSTR %%LVLC 1 1
%%SET %%T0A003 = %%SUBSTR %%LVLP 1 1
%%SET %%T0A004 = %%SUBSTR %%LVLS 1 1
%%RESOLVE
%%IF %%T0A001 EQ %
%%SET %%LVL = P
%%ENDIF
%%IF %%T0A002 EQ %
%%SET %%LVLC = P
%%ENDIF
%%IF %%T0A003 EQ %
%%SET %%LVLS = P
%%ENDIF
%%IF %%T0A004 EQ %
%%SET %%LVLP = P
%%ENDIF
%%SET %%SFX = A
%%SET %%COMMENT = PSA SCHEDULER RESOLUTION MEMBER
%%SET %%COMMENT = -BFILE: CHG.PSA.JOBPROD.CTMPARM(MKSSTMTP)
%%SET %%COMMENT = USER SCHEDULER INCLUDE AND CONTROL MEMBERS
%%SET %%COMMENT = -BFILE: CHGSCLM.TEST.PARM(MKSSTMTR)
%%SET %%COMMENT = -BFILE: CHGSCLM.TEST.PARM(MKSSTMTS)
%%SET %%COMMENT = -BFILE: CHGSCLM.TEST.PARM(MKSSTMTC)
%%SET %%COMMENT = GENERICA MASTER SCHEDULER INCLUDE MEMBER
%%SET %%COMMENT = -BFILE: SYS3.GENTEST.PARM(GENERIC1)
%%SET %%JOBTYPE = DISTRIBUTION
%%IF %%LVLC EQ P
%%INCLIB CHGSCLM.PROD.PARM %%INCMEM MKSSTMTS
%%ELSE
%%INCLIB CHGSCLM.TEST.PARM %%INCMEM MKSSTMTS
%%ENDIF
%%IF %%LVLS EQ P
%%INCLIB STS3.GENPROD.V%%VER.PARM %%INCMEM GENERIC1
%%ELSE
%%INCLIB SYS3.GENTEST.PARM %%INCMEM GENERIC1
%%ENDIF
%%IF %%PJT EQ MDPS
%%SET %%JNAME = MKSMDPS$
%%ELSE
%%IF %%PJT EQ MDCS
%%SET %%JNAME = MKSMDCS$
%%ELSE
%%IF %%PJT EQ MHSS
%%SET %%JNAME = MKSMHSS$
%%ELSE
%%IF %%PJT EQ MISS
%%SET %%JNAME = MKSMISS$
%%ELSE
%%IF %%PJT EQ DRGS
%%SET %%JNAME = MKSDRGS$
%%ELSE
%%IF %%PJT EQ BRXS
%%SET %%JNAME = MKSBRXS$
%%ENDIF
%%ENDIF
%%ENDIF
%%ENDIF
%%ENDIF
%%ENDIF
//%%JNAME JOB '%%OR%%.%%LVL%%.01,4030,MKS',LTRJL1,
//* RESTART=S020DLTE,
%%IF %%LVL EQ P
// CLASS=V,MSGCLASS=X,REGION=0M,COND=(8,LE)
%%ELSE
// CLASS=I,MSGCLASS=X,NOTIFY=%%OWNER,REGION=0M,COND=(8,LE)
%%ENDIF
//* USER SCHEDULER RESOLVE MEMBER
//* -BFILE: CHG.SMR.JOBTEST.PARM(MKSSTMTR)
//* USER SCHEDULER INCLUDE MEMBER
//* -BFILE: CHG.SMR.JOBTEST.PARM(MKSSTMTS)
//* GENERICA JOB LIBRARY INCLUDE MEMBER
//* -BFILE: SYS3.GENTEST.PARM(GENERIC2)
%%INCLIB %%GENPFILE %%INCMEM GENERIC2
// DD DSN=STS2.EXSTREAM.V5R0M056.LOAD,DISP=SHR
//* GENERICA PRINT CLASS INCLUDE MEMBER
...etc...
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Jun 11, 2008 6:11 pm    Post subject: Reply to: Use of %% in JCL
Reply with quote

not a jcl syntax,
look like directives for Your scheduler
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 11, 2008 6:13 pm    Post subject:
Reply with quote

And at a guess I would say TWS (aka OPC)
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jun 11, 2008 6:15 pm    Post subject:
Reply with quote

expat wrote:
And at a guess I would say TWS (aka OPC)



This line could be a clue
%%SET %%COMMENT = PSA SCHEDULER RESOLUTION MEMBER
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jun 12, 2008 5:56 am    Post subject:
Reply with quote

Hi,

they are definitely Control-M auto edit variables, they will only resolve when run thru the scheduling tool. ie submitted via Control-M.

AutoEdit terms are prefaced by a %% symbol.

AutoEdit terms must be placed within the job stream submitted by Control-M, not within a catalogued JCL procedure.

Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us