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

Nested Procs: Can we call a Proc from a Proc


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

New User


Joined: 26 Mar 2005
Posts: 8

PostPosted: Fri Apr 29, 2005 9:48 am
Reply with quote

Can we call a proc from a proc
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Apr 29, 2005 4:01 pm
Reply with quote

Yes.

Here's the full description:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/5.3?SHELF=&DT=20040712170508&CASE=
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Fri Apr 29, 2005 10:20 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Apr 29, 2005 11:48 pm
Reply with quote

What does your reply have to do with nested procedures? icon_confused.gif
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Sat Apr 30, 2005 10:24 am
Reply with quote

I thought Nesting is calling one job from another :D ....
Back to top
View user's profile Send private message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Tue May 03, 2005 4:23 pm
Reply with quote

HI.

it is possoble . u can call proc with in the proc. Nested proc is possible.


nav
Back to top
View user's profile Send private message
pr_ibm

New User


Joined: 04 May 2005
Posts: 9

PostPosted: Wed May 04, 2005 9:01 pm
Reply with quote

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
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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top