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

Can we override the PGM parameter of JCL


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

New User


Joined: 27 Oct 2005
Posts: 15
Location: Pune

PostPosted: Thu Nov 10, 2005 10:47 am
Reply with quote

Can i give an override in jcl to overide 'pgm=' parameter in a proc?? I think this is not allowed,but just wanted to confirm.
Back to top
View user's profile Send private message
shri_shant

New User


Joined: 26 Oct 2005
Posts: 16

PostPosted: Thu Nov 10, 2005 5:04 pm
Reply with quote

We can't override 'pgm= ' parameter in proc. We can only override DD and EXEC parameter from procedure.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 10, 2005 7:51 pm
Reply with quote

Do you mean skipping the step....when you say OVERRIDING the program ?????

Regards,

Priyesh.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Nov 11, 2005 2:11 am
Reply with quote

In the "MVS JCL Reference Manual", chapter "5.2 Modifying Procedures":

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/5.2?DT=20050713232151

Check the section "5.2.1.1 Modifying EXEC Statement Parameters" under the heading "Rules for Modifying EXEC Parameters". The first rule stated is:

Quote:

You cannot modify a PGM parameter.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Nov 11, 2005 4:38 am
Reply with quote

The closest you can get is:

In the proc code // exec pgm=&pname

When you call the proc code // exec proc1,pname=mypgm
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top