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
 

 

How to override program name in a proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to override program name in a proc
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: 1439
Location: Bangalore,India

PostPosted: Fri Nov 23, 2007 12:19 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Fri Nov 23, 2007 12:22 pm    Post subject: Reply to: How to override program name in a proc
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    Post subject:
Reply with quote

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

Active Member


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

PostPosted: Fri Nov 23, 2007 6:13 pm    Post subject:
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    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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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