IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Overriding the parameters


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sat Apr 15, 2006 11:20 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Apr 15, 2006 12:25 pm
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sat Apr 15, 2006 2:00 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Apr 15, 2006 2:25 pm
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sat Apr 15, 2006 2:44 pm
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sat Apr 15, 2006 4:18 pm
Reply with quote

Superk , Can u please advise.I am waiting for your reply to proceed.

Thanks in advance,
Ks
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Apr 16, 2006 12:23 am
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sun Apr 16, 2006 9:27 am
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Sun Apr 16, 2006 9:38 am
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Apr 17, 2006 4:29 am
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Tue Apr 18, 2006 7:32 pm
Reply with quote

Thanks mmwife and superk.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
Search our Forums:

Back to Top