View previous topic :: View next topic |
Author |
Message |
tilak Beginner
Joined: 13 Sep 2006 Posts: 9 Topics: 7
|
Posted: Wed Sep 20, 2006 1:14 am Post subject: can we execute a proc from another proc |
|
|
1.can we execute a proc from another proc |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Wed Sep 20, 2006 2:50 am Post subject: |
|
|
Yes.
O.
________
marijuana test
Last edited by ofer71 on Sat Feb 05, 2011 11:49 am; edited 1 time in total |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Wed Sep 20, 2006 7:00 am Post subject: |
|
|
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 |
|
 |
|
|