|
View previous topic :: View next topic
|
| Author |
Message |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Hi all,
I have a JCL that calls a Parm.This parm has some parameers like the HLQ,the loadlib etc.
My requirement is I need to override these parameters.ie - need to code this HLQ,HLQD etc in the main JCL.
Following I have coded.
1. The Job card .
2. Adding the Proclib.
Then to code these paramters do i need to add a stepname,If yes what step to give.Please help.
Pls see the original JCL.
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//PROCLIBS JCLLIB ORDER=(myid.examp.PROCLIB)
//STEP0010 EXEC JOB1,
// INPPARM='parm1',
// COND=(0,LT)
//
I need to code the HLQ,HLQD etc.Can I code like below :
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//PROCLIBS JCLLIB ORDER=(myid.examp.PROCLIB),HLQ=XXX,HLQD=XXXX
//STEP0010 EXEC JOB1,
// INPPARM='parm1',
// COND=(0,LT)
//
Sorry all in case this topic has been discussed before.
Thanks,
KS |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You're already passing a value to the parameter INPPARM, so why not just continue the process and pass the values for HLQ and HLQD:
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
// JCLLIB ORDER=(myid.examp.PROCLIB)
...
//STEP0010 EXEC JOB1,
// INPPARM='parm1',HLQ='TTT',HLQD='XXXX',
// COND=(0,LT)
// |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Thanks Superk for the reply.
The HLQand the HLQD are already there in the Parm.I need to override them and the new HLQ and HLQD need to be coded in the main JCL ie- is the requirement.
In that case can I add them after the Proclib statement or it should have a seperate stepname.
My Jcl :
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//PROCLIBS JCLLIB ORDER=(myid.examp.PROCLIB),HLQ=TTT,HLQD=XXXX
//STEP0010 EXEC JOB1,
// INPPARM='parm1',
// COND=(0,LT)
//
Kindly advise if am wrong.
Thanks,
KS. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
First of all, there is no such thing as a PROCLIB statement. There is, however, a JCLLIB statement as shown here, which is coded:
//[name] JCLLIB ORDER=(library[,library]...) [comments]
Secondly, did you not look at the example I posted? Parameters and overrides are provided in the JCL EXEC statement.
You may want to read more on how to modify procedures here. |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Superk,
Thanks for the instant reply.Read the manuals u had referred.
Saw ur example :
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
// JCLLIB ORDER=(myid.examp.PROCLIB)
...
//STEP0010 EXEC JOB1,
// INPPARM='parm1',HLQ='TTT',HLQD='XXXX',
// COND=(0,LT)
//
The INPPARM also have these parameters(HLQ,HLQD).Now while executing the above JCL which HLQ and HLQD the jcl will take - the ones in the PARM or the ones u have mentioned.
Can I code like this :
//Example JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//PROCLIBS JCLLIB ORDER=(myid.examp.PROCLIB),HLQ=TTT,HLQD=XXXX
//STEP0010 EXEC JOB1,
// INPPARM='parm1',
// COND=(0,LT)
//
Will this JCL take the parameters I have coded.see the lines in bold.
Kindly explain.
Thanks,
KS |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Superk , Can u please advise.I am waiting for your reply to proceed.
Thanks in advance,
Ks |
|
| Back to top |
|
 |
mmwife
Super Moderator

Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi KS,
The best thing to do is provide us with EXACT copies of the following:
1) The JOB JCL, including the full stmt that executes the PROC
2) The Proc stmts themselves
It's best to use cut & paste, no a munual copy to avoid copy errors. |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Please find the exact copy of my JCL.
//JOB1 JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//JCLLIB ORDER=(MYID.PROC.PROCLIB)
// ....
//STEP0010 EXEC JOBAB,
// INPPARM='JOB50A',
// COND=(0,LT)
//
Now the Parm JOB50A has the HLQ and HLQD parameters.
My requirement is I need to override those parameters in the Parm.
So where should I place the new parameters in the JCL.
Which of the following is correct ?
//JOB1 JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//JCLLIB ORDER=(MYID.PROC.PROCLIB),
// HLQ = GLPS,
// HLQD = GLPSD.DH,
// DB2HLQ = DB2S
// ....
//STEP0010 EXEC JOBAB,
// INPPARM='JOB50A',
// COND=(0,LT)
//
OR
//JOB1 JOB CLASS=B,MSGCLASS=J,MSGLEVEL=(1,1)
//JCLLIB ORDER=(MYID.PROC.PROCLIB)
// ....
//STEP0010 EXEC JOBAB,
// INPPARM='JOB50A',
// HLQ = GLPS,
// HLQD = GLPSD.DH,
// DB2HLQ = DB2S
// COND=(0,LT)
//
Is the first JCL syntax , the correct one or the second one?If not where to place them in the main JCL.It has to be placed in the JCL itself ie is the req.
Kindly advise.
Thanks,
KS |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Hi,
Sorry forgot to add the Proc Sts.
Pls find them.
//GLJB361P JOB CLASS=P,MSGCLASS=J,MSGLEVEL=(1,1)
.....
//STEP0010 EXEC PROC=JOBAB,
// HLQ = GLPP,
// HLQD = GLPPD.DH,
// DB2HLQ = DB2P
//STEPLIB DD DSN=GLPP.NDVR.MP3.LOADLIB,
// DISP=SHR
// DD DSN=CEE.SCEERUN,DISP=SHR
//SYSPRINT DD SYSOUT=X
//SYSOUT DD SYSOUT=X
...................
The code looks almost like this.Dont remember it exactly.
I need this HLQ and the HLQD parameters to be overridden in the main JCL.
Thanks,
KS |
|
| Back to top |
|
 |
mmwife
Super Moderator

Joined: 30 May 2003 Posts: 1592
|
|
|
|
Sorry KS,
The 2nd JCL set you offered seems to have the correct syntax but add a comma (,) at the end of the stmt before the COND stmt. |
|
| Back to top |
|
 |
KS
New User

Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
| Thanks mmwife and superk. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|