copying Symbolic Parm from Procs to Driver JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

copying Symbolic Parm from Procs to Driver JCL

Postby Farhaan4mf » Thu Apr 10, 2014 7:45 pm

Hi,

Scenario : All the Driver JCLs has one or more Procs. PROCS always contains Symbolic parms. Where as, few driver JCLs has the corresponding SYmbolic parms defined and few do not have have the corresponding Symbolic parms.

My Aim is to create the TEST jcl in such a way that, it looks the symbolic parms in PROCs and define those is driver JCL (if driver JCL does not have it already) If the driver JCL already has the same symbolic parm, then no need to add into the test JCL.

Driver JCL

//PROC1 EXEC PROC1
//*
//PROC2 EXEC PROC2,
// PFX1="PPP.QQQ",
// PFX2="PPP.RRR"
//*
//PROC3 EXEC PROC3

PROC1
//PROC1 PROC PFX1='PPP.OOO',
// PFX2=''PPP.MMM,
// PFX3=''PPP.NNN,


PROC2
//PROC2 PROC PFX1='PPP.QQQ',
// PFX3=''PPP.SSS,

Desired Test jCL should look like this :

//PROC1 EXEC PROC,
// PFX1='PPP.OOO',
// PFX2=''PPP.MMM,
// PFX3=''PPP.NNN,
//*
//PROC2 EXEC PROC2,
// PFX1="PPP.QQQ",
// PFX2="PPP.RRR"
// PFX3="PPP.RRR
//*
//PROC3 EXEC PROC3

Please help if any CLIST can do this ...
Farhaan4mf
 
Posts: 29
Joined: Mon May 13, 2013 4:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: copying Symbolic Parm from Procs to Driver JCL

Postby prino » Thu Apr 10, 2014 8:37 pm

I've read your post, re-read it, and re-read it again, and all I can say is that it is as clear as mud. And next to that, CLIST is dead, very, very, very dead, as dead as a dodo and as dead as a parrot.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: copying Symbolic Parm from Procs to Driver JCL

Postby Farhaan4mf » Thu Apr 10, 2014 8:56 pm

driver JCL

 //DM5D724 EXEC DM5D724   
//*                     
//DM5D725K EXEC DM5D725K
 


Procs Look like this
 //DM5D724 PROC PFXMC='ORDUMC.TODAY',       
//             PFX1=PCJ.P1,                 
//             PFX1VS=PCJ.P1VS,             
//             PFX2='PEN.CJ.PROD.STANDARD',
//             UNITDSK=PROD,               
//             UNITGDG=PROD                 

I want My Test JCL in below way

 //DM5D724 EXEC DM5D724                       
//             PFXMC='ORDUMC.TODAY',         
//             PFX1=PCJ.P1,                 
//             PFX1VS=PCJ.P1VS,             
//             PFX2='PEN.CJ.PROD.STANDARD', 
//             UNITDSK=PROD,                 
//             UNITGDG=PROD                 
//*                                         
//DM5D725K EXEC DM5D725K                     


In brief, I am looking a way out to read the PROC's symbolic parm statements (e.x. PFX1, PFX2 etc.) and want those to add in the test/driver JCL itself. Please help to get it done in easy way !!
Farhaan4mf
 
Posts: 29
Joined: Mon May 13, 2013 4:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: copying Symbolic Parm from Procs to Driver JCL

Postby dick scherrer » Thu Apr 10, 2014 10:17 pm

Topic locked. There is a duplicate in the CLIST / REXX part of the forum.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post