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: 962
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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