View previous topic :: View next topic
|
Author |
Message |
kpriya6
New User
Joined: 20 Nov 2006 Posts: 13
|
|
|
|
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 |
|
|
adarsha
New User
Joined: 28 Dec 2006 Posts: 8 Location: Noida,Delhi
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
reddy307 Currently Banned New User
Joined: 09 Jun 2006 Posts: 18
|
|
|
|
Hi Adarsha,
can u plz let me know the example code for the flag restart |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
adarsha
New User
Joined: 28 Dec 2006 Posts: 8 Location: Noida,Delhi
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|