MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Override Proc Step PARM parameter

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Fri Oct 03, 2008 10:21 am    Post subject: Override Proc Step PARM parameter Reply with quote

Hi all

Is there any way to override the PARM parameter in the Step of the PROC from Job.

Thanks
Kavi
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Oct 03, 2008 10:57 am    Post subject: Reply with quote

kavi,

Define the parm as symbolic in the proc and override it in the jcl

ex:

Here is PM is the symbolic parm you want to override

Code:

//MYPROC   PROC PM='STOPAFT=1'               
//STEP1    EXEC PGM=ICEMAN,PARM=('&PM')     
//SYSOUT   DD SYSOUT=*                       
//SORTIN   DD DSN=some dataset,     
//            DISP=SHR                       
//SORTOUT  DD SYSOUT=*                       
//SYSIN    DD DSN=sort.control.card dataset,
//            DISP=SHR                       
//*                                         
// PEND                                     
//STEP0100 EXEC MYPROC,PM='STOPAFT=10'     


Hope this helps...

Cheers

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Fri Oct 03, 2008 11:32 am    Post subject: Reply with quote

Thanks Kolusu it works.
If suppose i already passed parm in the Proc step without symbolic parameter, is there any way to override it from JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Oct 03, 2008 11:52 am    Post subject: Reply with quote

kavi,

Quote:

If suppose i already passed parm in the Proc step without symbolic parameter, is there any way to override it from JCL.


Works. check jsharon1248's example below


Kolusu


Last edited by kolusu on Fri Oct 03, 2008 5:41 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Fri Oct 03, 2008 1:37 pm    Post subject: Reply with quote

Thanks Kolusu.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Fri Oct 03, 2008 2:37 pm    Post subject: Reply with quote

I think the op just wants a straight PARM override. Code it with PARM.<procstepname>='<override value'. Here's an example:

Proc
Code:
 //T1 PROC                                           
 //*                                                 
 //*                                                 
 //DELT010A EXEC PGM=PGM1,PARM='Parm Value1'     
...             
 //*   


Source JCL
Code:
//*                                           
// EXEC T1,PARM.DELT010A='Override Parm Value'
//*


Interesting thing is that the JES messages don't show the override like a step override.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Oct 03, 2008 5:40 pm    Post subject: Reply with quote

jsharon1248,

Thanks. I should have tested before I said that it doesn't work .sorry
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Mon Oct 06, 2008 8:06 am    Post subject: Reply with quote

kolusu

One oversight in a bazillion posts, and you're going to apologize? Totally unnecessary. Even Michael Jordan missed a shot now and then...

Thank You
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group