Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Nested Procs: Can we call a Proc from a Proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Nested Procs: Can we call a Proc from a Proc
Reply with quote

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

superk

Moderator Team Head


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

PostPosted: Fri Apr 29, 2005 4:01 pm    Post subject: Re: Nested Procs: Can we call a Proc from a Proc
Reply with quote

Yes.

Here's the full description:

http://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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Apr 29, 2005 11:48 pm    Post subject: Re: Nested Procs: Can we call a Proc from a Proc
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    Post subject:
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    Post subject: Re: Nested Procs: Can we call a Proc from a Proc
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us