Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Recursive execution of particular procedure in Jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kpriya6

New User


Joined: 20 Nov 2006
Posts: 13

PostPosted: Thu Jan 04, 2007 3:09 pm    Post subject: Recursive execution of particular procedure in Jcl
Reply with quote

Hi,
We need to execute one particular step for n times in Jcl. This n variable might be varying. Can we execute a single procedure multiple times?
How can we do that?

Thanks and Regards,
Priya
Back to top
View user's profile Send private message

adarsha

New User


Joined: 28 Dec 2006
Posts: 8
Location: Noida,Delhi

PostPosted: Thu Jan 04, 2007 5:37 pm    Post subject: Recursive execution of particular procedure in Jcl
Reply with quote

u can do it bu flag restart step logic in JCl,

it executes the perticulat step until the flag value is set to 'n''
this value comes from previous step...
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Jan 04, 2007 5:41 pm    Post subject: Re: Recursive execution of particular procedure in Jcl
Reply with quote

kpriya6 wrote:
Can we execute a single procedure multiple times?


Yes. You can code as many job steps as needed that all execute the same single procedure. Or, you can code many individual jobs that all execute the same single procedure.
Back to top
View user's profile Send private message
reddy307
Currently Banned

New User


Joined: 09 Jun 2006
Posts: 18

PostPosted: Thu Jan 04, 2007 6:12 pm    Post subject: Re: Recursive execution of particular procedure in Jcl
Reply with quote

Hi Adarsha,

can u plz let me know the example code for the flag restart
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 04, 2007 10:15 pm    Post subject:
Reply with quote

Hello,

How does your process know when to quit?

If the information of how many times to run is known, you could implement a job that replicated the step n times and then send the created jcl through the internal reader (INTRDR).

Another alternative is to have the process check to see if it is done and then sent itself through the internal reader.
Back to top
View user's profile Send private message
adarsha

New User


Joined: 28 Dec 2006
Posts: 8
Location: Noida,Delhi

PostPosted: Sat Jan 06, 2007 11:30 am    Post subject: Re: Recursive execution of particular procedure in Jcl
Reply with quote

reddy307 wrote:
Hi Adarsha,

can u plz let me know the example code for the flag restart



hi,

the code differs from company standards...
FLGSTART is a program which is coded as like other
EXEC=pgm name....
u need to code a cobol program for that...
its difficult to code in this page..

ask the System Analyst or DBA is thr any set of in built pgms in your company..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jan 07, 2007 10:23 am    Post subject:
Reply with quote

Hi Priya,

Have any of the replies helped with what you want to do?

If not, let us know and we'll give it another try.
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 Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts output DDname JESMSGLG job during exe... italo_pm TSO/ISPF 16 Tue Jun 21, 2016 11:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us