View previous topic :: View next topic
|
Author |
Message |
ksrinivas
New User
Joined: 26 Mar 2005 Posts: 8
|
|
|
|
Can we call a proc from a proc |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
andycool
New User
Joined: 12 Apr 2005 Posts: 64
|
|
|
|
Guess this might help you:
==========================================
//Job1 JOB ...
//
//Job1step1
//
//Job1step2
//
//Job1step3
//
//JOB1SUBMIT2 EXEC PGM=IKJEFT01,
// COND=(0,GT),
// PARM='',DYNAMNBR=50,
// REGION=4096K
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
PROF PREFIX(ANDYCOOL)
SUBMIT 'ANDYCOOL.TEST.JOBS(JOB2)'
================================
Regards, |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What does your reply have to do with nested procedures? |
|
Back to top |
|
|
andycool
New User
Joined: 12 Apr 2005 Posts: 64
|
|
|
|
I thought Nesting is calling one job from another :D .... |
|
Back to top |
|
|
naveensri2005 Currently Banned New User
Joined: 22 Mar 2005 Posts: 51 Location: chennai
|
|
|
|
HI.
it is possoble . u can call proc with in the proc. Nested proc is possible.
nav |
|
Back to top |
|
|
pr_ibm
New User
Joined: 04 May 2005 Posts: 9
|
|
|
|
Yes it is possible . See the following exampe.
//job1 job ()
//Step1 exec proc1
//
//Proc1 proc
//step2 exec proc2
//
//Proc2 proc
//step3 exec pgm=sort
//sortin dd *
this is nested proc
/*
//sortout dd sysout=*
//sysin dd *
sort fields = copy
/*
//
In the above exampe job1 is calling proc1 .
proc1 is calling proc2 .
Proc2 will execute sort step and output goes to sysout. Here it simply copies input to output dataset which is sysout here.
once you execute this job sysout will have " this is nested proc"
Thanks
Pr.. |
|
Back to top |
|
|
|