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

overriding parameter in one of step in PROC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue May 05, 2009 1:03 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue May 05, 2009 1:07 pm
Reply with quote

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
View user's profile Send private message
subinraj

New User


Joined: 04 Sep 2007
Posts: 16
Location: Bangalore

PostPosted: Tue May 05, 2009 1:17 pm
Reply with quote

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
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue May 05, 2009 1:19 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue May 05, 2009 1:20 pm
Reply with quote

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
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue May 05, 2009 3:44 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 05, 2009 3:54 pm
Reply with quote

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
View user's profile Send private message
maheshvamsi

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Tue May 05, 2009 4:08 pm
Reply with quote

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
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue May 05, 2009 4:24 pm
Reply with quote

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
View user's profile Send private message
maheshvamsi

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Tue May 05, 2009 4:29 pm
Reply with quote

how you are passing this?

Could you please post jcl.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 05, 2009 4:34 pm
Reply with quote

And the output showing the error codes and text.
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Tue May 05, 2009 4:49 pm
Reply with quote

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
View user's profile Send private message
maheshvamsi

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Tue May 05, 2009 5:15 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 05, 2009 5:22 pm
Reply with quote

And the output from the run ?
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: Tue May 05, 2009 8:03 pm
Reply with quote

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
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Wed May 06, 2009 4:47 am
Reply with quote

I'm really amazed, you guys know about ALL the corner cases in JCL.

icon_eek.gif
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top