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
 

 

Overriding the parameters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Overriding the parameters
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

Moderator Team Head


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

PostPosted: Sat Apr 15, 2006 12:25 pm    Post subject: Re: Overriding the parameters
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    Post subject: Re: Overriding the parameters
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

Moderator Team Head


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

PostPosted: Sat Apr 15, 2006 2:25 pm    Post subject: Re: Overriding the parameters
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    Post subject: Re: Overriding the parameters
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    Post subject: Re: Overriding the parameters
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    Post subject:
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    Post subject: Re: Overriding the parameters
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    Post subject: Re: Overriding the parameters
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    Post subject:
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    Post subject: Re: Overriding the parameters
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


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