Page 1 of 1

copying Symbolic Parm from Procs to Driver JCL

PostPosted: Thu Apr 10, 2014 7:45 pm
by Farhaan4mf
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 ...

Re: copying Symbolic Parm from Procs to Driver JCL

PostPosted: Thu Apr 10, 2014 8:37 pm
by prino
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.

Re: copying Symbolic Parm from Procs to Driver JCL

PostPosted: Thu Apr 10, 2014 8:56 pm
by Farhaan4mf
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 !!

Re: copying Symbolic Parm from Procs to Driver JCL

PostPosted: Thu Apr 10, 2014 10:17 pm
by dick scherrer
Topic locked. There is a duplicate in the CLIST / REXX part of the forum.

d