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
 

 

Override PARM in PROC from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Paldeshmukh

New User


Joined: 17 Jun 2010
Posts: 4
Location: Pune

PostPosted: Wed Jun 23, 2010 3:00 pm    Post subject: Override PARM in PROC from JCL
Reply with quote

Hi,
In the proc, there is a parm passed and i want to override it from the JCL.


//JSPS010 EXEC PGM=XXXXXXXX,REGION=4096K,PARM='ABCB010'

I want to override from the JCL so that the PARM is ABCD011.

I have tried giving Stpname.PARM='ABCD011' in the jcl. but, it does not work.

I would appreciate any help.
thanks,
Pallavi
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Wed Jun 23, 2010 3:09 pm    Post subject: Reply to: Override PARM in PROC from JCL
Reply with quote

According to the JCL Reference Guide it should be coded:

//JOBSTEP EXEC PROCNAME,PARM='ABCD011'
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Wed Jun 23, 2010 3:12 pm    Post subject:
Reply with quote

Try giving override to the complete step
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 23, 2010 3:13 pm    Post subject:
Reply with quote

Ketan Varhade wrote:
Try giving override to the complete step

Huh ? Can you explain exactly what you mean by that
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 23, 2010 3:38 pm    Post subject:
Reply with quote

Quote:
Huh ? Can you explain exactly what you mean by that


Expat,
Ketan seems more concerned with his post count than
making any sense with his comments.

he often paraphrases the response of the previous poster.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Wed Jun 23, 2010 3:42 pm    Post subject:
Reply with quote

Its not so, I will reply to this.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 23, 2010 3:46 pm    Post subject:
Reply with quote

Quote:

Ketan seems more concerned with his post count than


Is that important (post count)?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 23, 2010 3:50 pm    Post subject: Re: Reply to: Override PARM in PROC from JCL
Reply with quote

superk wrote:
According to the JCL Reference Guide it should be coded:

//JOBSTEP EXEC PROCNAME,PARM='ABCD011'


I've always used PARM.procstepname='whatever'
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Jun 23, 2010 6:04 pm    Post subject: Re: Reply to: Override PARM in PROC from JCL
Reply with quote

expat wrote:
I've always used PARM.procstepname='whatever'


Yep, you're right, although the one I posted will work if the PROC has only one step. I hadn't had my first cup of coffee yet ...
Back to top
View user's profile Send private message
Paldeshmukh

New User


Joined: 17 Jun 2010
Posts: 4
Location: Pune

PostPosted: Wed Jun 23, 2010 8:20 pm    Post subject:
Reply with quote

no, this does not work, I have tired it.

Can I overwrite the EXEC step in the proc.

Pallavi
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Jun 23, 2010 8:22 pm    Post subject:
Reply with quote

Quote:
no, this does not work, I have tired it.

No. What you quoted was stepname.PARM=
What works is PARM.Stepname=

Garry.
Back to top
View user's profile Send private message
Paldeshmukh

New User


Joined: 17 Jun 2010
Posts: 4
Location: Pune

PostPosted: Wed Jun 23, 2010 8:38 pm    Post subject:
Reply with quote

I have tried PARM.stepname as well.
That does not work as well..
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Jun 23, 2010 8:43 pm    Post subject: Reply to: Override PARM in PROC from JCL
Reply with quote

Can you provide some detail for exactly what you've tried? I've tested both scenarios given and they both work.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 23, 2010 9:50 pm    Post subject:
Reply with quote

Hello,

Quote:
I have tried PARM.stepname as well.
That does not work as well..
Then you have done something incorrectly. . .

If we are to be of assistance you need to post the actual jcl submitted, the expanded jcl fro the run, and the error(s) generated.

Posting "it didn't work" is simply a waste of everyone's time.
Back to top
View user's profile Send private message
Paldeshmukh

New User


Joined: 17 Jun 2010
Posts: 4
Location: Pune

PostPosted: Thu Jun 24, 2010 1:19 pm    Post subject:
Reply with quote

Sorry about that.
Here is the actual JCL/proc


PROC
Step 1 ( only step) ABCD565
//JSPS010 EXEC PGM=BATCH,REGION=4096K,PARM='ABCD010'


In the JCL, I want to override this parm.

JCL
//ABCD565 EXEC ABCD565,PARM.JSPS010='ABCD011',
// SYS='HPSPRNA',
// USER='USER',
// MOD='MOD',


sys, user and mod are other symbolic parameter ( in the proc, it is in the PROC statement).

There are also some other symbolic parameters and some DD statements which have to be overwritten, which is working fine.

May be the solution will be easy... but, i cant figure it out..

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 24, 2010 1:53 pm    Post subject:
Reply with quote

After a quick test I did notice that the JESJCL segment did not reflect the overridden PARM but the result was as expected. Is this perhaps the cause of your confusion.

The PROC
Code:
//PROC001  PROC C1=4                                                   
//*--------------------------------------------------------------------
//STEP0010 EXEC PGM=IKJEFT01,PARM='SETCOND &C1'                       
//SYSEXEC  DD DSN=XXXXXX.SYSEXEC,DISP=SHR                                     
//SYSOUT   DD SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//SYSTSIN  DD DUMMY                                                   
//*--------------------------------------------------------------------
//PROC001  PEND


The JCL
Code:
//*--------------------------------------------------------------------
//PROC001  EXEC PROC001,PARM.STEP0010='SETCOND 399'


The result - as expected. The RC will be 04 with no PARM override.
Code:
-JOBNAME  STEPNAME PROCSTEP    RC   EXCP    CPU    SRB  CLOCK
-XXXXXX   RUN01    STEP0010   399     13    .00    .00    .00


The output
Code:
//RUN01    EXEC PROC00T,PARM.STEP0010='SETCOND 399'                   
XXPROC001  PROC C1=4                                                 
XX*-------------------------------------------------------------------
XXSTEP0010 EXEC PGM=IKJEFT01,PARM='SETCOND &C1'                       
IEFC653I SUBSTITUTION JCL - PGM=IKJEFT01,PARM='SETCOND 4'             
XXSYSEXEC  DD DSN=XXXXXX.SYSEXEC,DISP=SHR
XXSYSOUT   DD SYSOUT=*                                               
XXSYSTSPRT DD SYSOUT=*                                               
XXSYSTSIN  DD DUMMY                                                   
XX*-------------------------------------------------------------------
XXPROC001  PEND
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 Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm


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