View previous topic :: View next topic |
Author |
Message |
sneha_mf Beginner
Joined: 24 Oct 2005 Posts: 4 Topics: 4
|
Posted: Mon Oct 24, 2005 4:50 am Post subject: How to execute one step 100 times in one JOB |
|
|
Can anyone explain me how to execute one step 100 times in one JOB without writing 100 times in same Job. |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
 |
bablack Beginner
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
|
Posted: Tue Oct 25, 2005 1:56 pm Post subject: |
|
|
I suggest making it an instream-proc, to simplify execution:
//MYPROC PROC
//STEP1 EXEC PGM=MYPGM
//SYSPRINT DD SYSOUT=*
.. OTHER DD STATEMENTS ..
// PEND
//MYPGM001 EXEC MYPROC
//MYPGM002 EXEC MYPROC
//MYPGM003 EXEC MYPROC
.. REPEAT 97 MORE TIMES ..
At least it is only 1 line per repetition. _________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing |
|
Back to top |
|
 |
|
|