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

How to override program name in a proc


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

New User


Joined: 11 Jan 2006
Posts: 6

PostPosted: Fri Nov 23, 2007 12:05 pm
Reply with quote

Hello,

I have to override a program name from say X to Y, of a jobstep(say STEP200) in a production program. Please note i have already overridden the steplib where load module of this program Y is residing.

Please advise.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 23, 2007 12:19 pm
Reply with quote

Vikas,

Pleae note only DD statements can be overriden directly. May be you can pass symbolic parameter to PROC and override the exec thing.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 23, 2007 12:22 pm
Reply with quote

amithy,

If you are executing a PROC, you can modify all parameters in the EXEC statment except PGM. You cannot modify a PGM parameter.
Back to top
View user's profile Send private message
amity.vikas

New User


Joined: 11 Jan 2006
Posts: 6

PostPosted: Fri Nov 23, 2007 1:27 pm
Reply with quote

Thank you all for your time.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Nov 23, 2007 6:13 pm
Reply with quote

As Galileo might have said: "Yet you can."

Code:
2 //  JCLLIB ORDER=xxxxxxx.A.PROC                           
  //*                                                       
3 //S1       EXEC TEST,PROG=IEFBR14                         
4 XXTEST     PROC PROG=REQUIRED                             
  XX*                                                       
5 XXP1       EXEC PGM=&PROG                                 
  XX*                                                       
  IEFC653I SUBSTITUTION JCL - PGM=IEFBR14                   
. MESSAGE                                                   
3 IEFC001I PROCEDURE TEST WAS EXPANDED USING PRIVATE LIBRARY xxxxxxxx
E1PXPTST P1 S1 - STEP WAS EXECUTED - COND CODE 0000         
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 API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top