MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can we execute a proc from another proc

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
tilak
Beginner


Joined: 13 Sep 2006
Posts: 9
Topics: 7

PostPosted: Wed Sep 20, 2006 1:14 am    Post subject: can we execute a proc from another proc Reply with quote

1.can we execute a proc from another proc
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Sep 20, 2006 2:50 am    Post subject: Reply with quote

Yes.

O.
________
marijuana test


Last edited by ofer71 on Sat Feb 05, 2011 11:49 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Sep 20, 2006 7:00 am    Post subject: Reply with quote

tilak,

I am basically trying to execute a Proc PROC2 from a Proc PROC1 as well making use of Overiding parameters.Hope this helps.

Code:

//PROCLIB  JCLLIB ORDER=(USERID.PROCLIB)                               
//STEP010  EXEC PROC1                                                   
//                                                                     


PROC1

//PROC1    PROC                                                         
//STEP010  EXEC PGM=IEBGENER                                           
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSUT1   DD DSN=USERID.TEST.IN1,DISP=SHR                             
//SYSUT2   DD DSN=USERID.TEST.OUT1,DISP=SHR                             
//SYSIN    DD DUMMY                                                     
//STEP020  EXEC PROC2                                                   
//STEP010.SORTIN  DD DSN=USERID.TEST.IN2,DISP=SHR                       
//STEP010.SORTOUT DD DSN=USERID.TEST.OUT2,DISP=SHR                     
//STEP010.SYSIN   DD DSN=USERID.TEST.CARD,DISP=SHR                     
//         PEND                                                         

PROC2

//PROC2    PROC                                                         
//STEP010  EXEC PGM=SORT                                               
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD DUMMY                                                     
//SORTOUT  DD DUMMY                                                     
//SYSIN    DD DUMMY                                                     
//        PEND                                                         

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group