View previous topic :: View next topic
|
Author |
Message |
Paldeshmukh
New User
Joined: 17 Jun 2010 Posts: 4 Location: Pune
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
According to the JCL Reference Guide it should be coded:
//JOBSTEP EXEC PROCNAME,PARM='ABCD011' |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
Try giving override to the complete step |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Ketan Varhade wrote: |
Try giving override to the complete step |
Huh ? Can you explain exactly what you mean by that |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
Its not so, I will reply to this. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
Ketan seems more concerned with his post count than
|
Is that important (post count)? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Paldeshmukh
New User
Joined: 17 Jun 2010 Posts: 4 Location: Pune
|
|
|
|
no, this does not work, I have tired it.
Can I overwrite the EXEC step in the proc.
Pallavi |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Paldeshmukh
New User
Joined: 17 Jun 2010 Posts: 4 Location: Pune
|
|
|
|
I have tried PARM.stepname as well.
That does not work as well.. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Can you provide some detail for exactly what you've tried? I've tested both scenarios given and they both work. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Paldeshmukh
New User
Joined: 17 Jun 2010 Posts: 4 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|