View previous topic :: View next topic
|
Author |
Message |
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Hi,
I have a step in PROC as shown:
//STEP010 EXEC PGM=K9801GCP,
// PARM=(,SPARM,
// 'R/03/M/Y/&TDATE.80/9/000000')
I need to overide this in JCL so that Parameter is 'R/03/M/Y/&TDATE.80/9/ ' i.e there are '6' spaces instead of zeros.
Regards,
Rupesh Gupta |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As long as there are no nested procs, simply override the entire parm for that step.
I don't believe you will be able to only override the zeros to spaces. . . |
|
Back to top |
|
|
subinraj
New User
Joined: 04 Sep 2007 Posts: 16 Location: Bangalore
|
|
|
|
What ever value given in the JCL PARM will be pased to the PROC(or program). If we want to pass 6 spaces that should be coded in.
Code: |
// PARM1=(,SPARM,
// 'R/03/M/Y/&TDATE.80/9/ ') |
|
|
Back to top |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Hi Dick,
I gave
PROC01.STEP010 EXEC PGM=K9801GCP,
// PARM=(,SPARM,
// 'R/03/M/Y/&TDATE.80/9/ ')
But it is not overriding instead creating a new step. Is there another way for overriding.
regards,
rupesh gupta |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The requirement is not to code the parm, but override it in an existing proc.
This would be accomplished by overriding the parm for that step, not re-coding the original parm statement. |
|
Back to top |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Hi subinraj,
I don't want to change the proc just want to override it as Dick as told.
can you let me know another way. I required it asap.
regards,
rupesh gupta |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
I required it asap |
May I suggest that YOU take a look at the JCL reference manual - easily reached via the IBM Manuals button at the top of each page - and maybe be so bold as to try things yourself.
The urgency of the situation is purely yours. |
|
Back to top |
|
|
maheshvamsi
New User
Joined: 22 Mar 2008 Posts: 39 Location: bangalore
|
|
|
|
Simply you can overide Parm paramert by using
Parm.Procstepname=(paramerts which you are passing through parm)
example:
parm.Step010=(,SPARM,'R/03/M/Y/&TDATE.80/9/ ') |
|
Back to top |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Mahesh,
I dont think you can override the way you have done.I tried your way and its giving me this error;
'PARM.STEP010=(,SPARM,'R/03/M/Y/&TDATE.80/9/' IS AN UNIDENTIFIED JCL STATEMENT'
regards,
rupesh gupta |
|
Back to top |
|
|
maheshvamsi
New User
Joined: 22 Mar 2008 Posts: 39 Location: bangalore
|
|
|
|
how you are passing this?
Could you please post jcl. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And the output showing the error codes and text. |
|
Back to top |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Mahesh,
I gave it as per below code in JCL:
//PROC01 EXEC PROC=K9338FA1,
// SITE=SFO, <<< SITE/HMO/DATABASE
// TDATE=&TDATE,
// JNAME=F9397FA1
// PARM.STEP010=(,SPARM,'R/03/M/Y/&TDATE.80/9/ ')
Parm is in PROC K9338FA1
regards,
rupesh gupta |
|
Back to top |
|
|
maheshvamsi
New User
Joined: 22 Mar 2008 Posts: 39 Location: bangalore
|
|
|
|
Your are missing comma after "Jname=F9397FA1"
Code: |
//PROC01 EXEC PROC=K9338FA1,
// SITE=SFO, <<< SITE/HMO/DATABASE
// TDATE=&TDATE,
// JNAME=F9397FA1,
// PARM.STEP010=(,SPARM,'R/03/M/Y/&TDATE.80/9/ ') |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And the output from the run ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I dont think you can override the way you have done.I tried your way and its giving me this error;
'PARM.STEP010=(,SPARM,'R/03/M/Y/&TDATE.80/9/' IS AN UNIDENTIFIED JCL STATEMENT' |
Did you look at the error message and see where you have erred? At the top of the page is a link to "IBM Manuals" where the JCL Language Reference and Programming Guide are located. Suggest you review the proper way to specify an override and post back here if there are any questions.
Did the job finally run correctly? |
|
Back to top |
|
|
mtaylor
Active User
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
|
|
|
|
I'm really amazed, you guys know about ALL the corner cases in JCL.
|
|
Back to top |
|
|
|