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

Override PARM in PROC from JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Jun 23, 2010 3:09 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jun 23, 2010 3:13 pm
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
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 23, 2010 3:46 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jun 23, 2010 3:50 pm
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

Global Moderator


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

PostPosted: Wed Jun 23, 2010 6:04 pm
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Jun 23, 2010 8:22 pm
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
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

Global Moderator


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

PostPosted: Wed Jun 23, 2010 8:43 pm
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

Moderator Emeritus


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

PostPosted: Wed Jun 23, 2010 9:50 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jun 24, 2010 1:53 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top