IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

I want to run step4 10 times


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vk0022789

New User


Joined: 24 Sep 2008
Posts: 15
Location: hyderabad

PostPosted: Thu Jan 28, 2010 4:04 pm
Reply with quote

Hi,

I have four steps in my jcl.But i want to run step4 10 times...can anyone pls help me???

give some examples


Thanks,
kanna.R
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 28, 2010 4:10 pm
Reply with quote

JCL cannot loop -- you can copy step4 9 times in your job, or you can put step4 into a PROC and execute it 10 times.
Back to top
View user's profile Send private message
vk0022789

New User


Joined: 24 Sep 2008
Posts: 15
Location: hyderabad

PostPosted: Thu Jan 28, 2010 4:14 pm
Reply with quote

Thanks for ur quick response...


can u give me examples for this one?????

I am beginner of JCL

Thanks,
Kanna.R
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jan 28, 2010 4:36 pm
Reply with quote

Please attempt this yourself, it is the best way to learn.

If you then have problems, please post again and we will be happy to help.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Jan 28, 2010 7:47 pm
Reply with quote

kanna,

Experiment with instream PROCs to get familiar with the concept of JCL procedures. Look at PROC and PEND statements in the JCL Reference manual.
Back to top
View user's profile Send private message
dhekaneva

New User


Joined: 13 Sep 2005
Posts: 1
Location: india

PostPosted: Tue Feb 02, 2010 3:31 pm
Reply with quote

//stepname exec pgm=XXXX,perform=10 will do
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Feb 02, 2010 3:39 pm
Reply with quote

Quote:
//stepname exec pgm=XXXX,perform=10


it would be nice if You posted the job sysout to show evidence of the correcteness of Your advice
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Feb 02, 2010 3:41 pm
Reply with quote

dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do


perform means performance, not the number of times a step is executed
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Feb 02, 2010 5:16 pm
Reply with quote

dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do
Let's take your side that it would do what is being asked, but what if pgm=XXXX does not know about "perform"? icon_neutral.gif. "XXXX" must stand for any program, right?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 02, 2010 5:18 pm
Reply with quote

dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do

Extremely well tested before posting I shouldn't wonder icon_evil.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Feb 02, 2010 5:31 pm
Reply with quote

expat wrote:
dhekaneva wrote:
//stepname exec pgm=XXXX,perform=10 will do

Extremely well tested before posting I shouldn't wonder icon_evil.gif


All the time im wondering what "Software engineer" means.
And JCL as "skill".
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Feb 02, 2010 8:59 pm
Reply with quote

Hello and welcome to the forum,

Quote:
//stepname exec pgm=XXXX,perform=10 will do
When offering a suggestion/solution, it would be best to also post the output from a successful execution of the "code".
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Job is loading load modules several t... COBOL Programming 12
No new posts How to count the number of times key ... DFSORT/ICETOOL 14
No new posts Repeat part of record multiple times DFSORT/ICETOOL 4
Search our Forums:

Back to Top