MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to execute one step 100 times in one JOB

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sneha_mf
Beginner


Joined: 24 Oct 2005
Posts: 4
Topics: 4

PostPosted: Mon Oct 24, 2005 4:50 am    Post subject: How to execute one step 100 times in one JOB Reply with quote

Can anyone explain me how to execute one step 100 times in one JOB without writing 100 times in same Job.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 24, 2005 4:55 am    Post subject: Reply with quote

Please search before postimg:

http://mvsforums.com/helpboards/viewtopic.php?t=4293&highlight=execute+number
Back to top
View user's profile Send private message Send e-mail
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Tue Oct 25, 2005 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group