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

Extend PROC


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

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Fri Jul 29, 2011 1:26 am
Reply with quote

The TS question is not very clear, to say the least.

Here are 3 things that can be done with procedures, maybe it will help:

1. Nested procedures

You can create a new procedure that calls the original one, with new defaults:
Code:
//BATXYZT  PROC  X1=OVER1,X2=OVER2
//RUNABCD  EXEC  PROC=BATABCD,X1=&X1,X2=&X2
//         PEND


2. Change DD statement

If the original statement has 2 DD cards, you can add a 3rd one by using blank operands:
Code:
//step.CEEOPTS DD
//         DD
//         DD    DISP=SHR,DSN=xyz(OVER3)


3. You can combine the 2 possibilities together

Create a new procedure with modified DD statement:
Code:
//BATXYZT  PROC  X1=OVER1,X2=OVER2,X3=OVER3
//RUNABCD  EXEC  PROC=BATABCD,X1=&X1,X2=&X2
//step.CEEOPTS DD
//         DD
//         DD    DISP=SHR,DSN=xyz(&X3)
//         PEND


Note: I am at home, I am not able to verify this JCL. You'll have to try yourself. And read the manual...
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 Proc print in Mainframe All Other Mainframe Topics 4
No new posts trying to set return code in PROC JCL & VSAM 15
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts Can we pass cobol pointer to cobol-db... DB2 4
Search our Forums:

Back to Top