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

How to run a single proc n times in a jcl?


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

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Tue May 15, 2007 11:36 am
Reply with quote

All,

How to run a single proc n times in a jcl. it should have only one step.

For example:

//jobname job .........
//step1 exec abc
//

Here, i want to run this ABC proc n times. how can i do that?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 15, 2007 12:11 pm
Reply with quote

Quote:
How to run a single proc n times in a jcl. it should have only one step.

Have you thoght of coding the EXEC statement multiple times - once for each time that you want to run it.

Would I be cynical if I mentioned HOMEWORK here ?
Back to top
View user's profile Send private message
pcoreddy

New User


Joined: 14 Mar 2007
Posts: 24
Location: Mysore

PostPosted: Tue May 15, 2007 12:44 pm
Reply with quote

tell me your exact requirement

without changing anything why do you want to run the same proc n times?



Regards
Chandra
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu May 17, 2007 8:09 pm
Reply with quote

Hi,

I can think of one situation where you can make your JCL/PROC dataset-triggered. n-times datasets comes in, n-times job has to execute.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 17, 2007 8:15 pm
Reply with quote

Quote:
How to run a single proc n times in a jcl. it should have only one step.

Could you please elaborate on this requirement of only having one step.
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: Fri May 18, 2007 12:47 am
Reply with quote

Hello,

If this is an interview question or homework, please let us know so that this topic can be relocated to the proper part of the forums.

If this is something you have been required to do at work, please explain why there is such a requirement.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 18, 2007 11:40 am
Reply with quote

Hi,

It may be a practical problem, I can relate it with a typical A[/a]ccount [b]Recievale (AR) system. Where (at submitter end) Submission System is required to XCOM or send every submission to some other System or sub-system to process those file/s.

Still, I can just assume.

gkanthavel, Please let us know the origin of this question, we cant read your mind from here.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 18, 2007 12:06 pm
Reply with quote

anuj_model wrote:
Hi,

.., I can relate it with a typical A[/a]ccount [b]Recievale (AR) system. ..


Please read the above as :
Account Receivable(AR)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 18, 2007 12:23 pm
Reply with quote

hmm..I dont know why the previous post came 3 times..!!
I dont know the reason behind icon_sad.gif , I am sorry. icon_neutral.gif

(Here is a request:
Moderator/Admin, please provide some delete-button to avoid such situations)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 25, 2007 12:26 pm
Reply with quote

Hey Thanks Moderator/s for deleting extra posts. icon_smile.gif
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: Fri May 25, 2007 9:36 pm
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
gkanthavel

New User


Joined: 14 May 2007
Posts: 5
Location: chennai

PostPosted: Thu May 31, 2007 5:27 pm
Reply with quote

Its an interview question. is it possible? i think its possible.

the question is:

you have written a job name is ABC which invokes same proc three times. The proc name is XYZ. the proc has 3 steps. when the job runs, it got abended in step 2 of the first proc. how do you ask the production people to restart the job?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 31, 2007 5:35 pm
Reply with quote

Quote:
how do you ask the production people to restart the job?

Very nicely icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif

That depends on how you have named each proc

//PROC1 EXEC XYZ
//PROC2 EXEC XYZ
//PROC3 EXEC XYZ
Would be an easy restart, but

//PROC EXEC XYZ
//PROC EXEC XYZ
//PROC EXEC XYZ
May be a bit more fun................................
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 How to append a PS file into multiple... JCL & VSAM 3
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top