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
 

 

overriding parameter in one of step in PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: overriding parameter in one of step in PROC
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

Site Director


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

PostPosted: Tue May 05, 2009 1:07 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: overriding parameter in one of step in PROC
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

Site Director


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

PostPosted: Tue May 05, 2009 1:20 pm    Post subject:
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    Post subject: Reply to: overriding parameter in one of step in PROC
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 05, 2009 3:54 pm    Post subject:
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    Post subject: Reply to: overriding parameter in one of step in PROC
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    Post subject: Reply to: overriding parameter in one of step in PROC
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 05, 2009 4:34 pm    Post subject:
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    Post subject: Reply to: overriding parameter in one of step in PROC
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    Post subject:
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: 8593
Location: Back in jolly old England

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

And the output from the run ?
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: Tue May 05, 2009 8:03 pm    Post subject:
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    Post subject:
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    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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


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