Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to run a single proc n times in a jcl?
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 15, 2007 12:11 pm    Post subject:
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    Post subject: Re: How to run a single proc n times in a jcl?
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

Senior Member


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

PostPosted: Thu May 17, 2007 8:09 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 17, 2007 8:15 pm    Post subject:
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

Site Director


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

PostPosted: Fri May 18, 2007 12:47 am    Post subject:
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

Senior Member


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

PostPosted: Fri May 18, 2007 11:40 am    Post subject:
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

Senior Member


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

PostPosted: Fri May 18, 2007 12:06 pm    Post subject:
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

Senior Member


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

PostPosted: Fri May 18, 2007 12:23 pm    Post subject:
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

Senior Member


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

PostPosted: Fri May 25, 2007 12:26 pm    Post subject:
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

Site Director


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

PostPosted: Fri May 25, 2007 9:36 pm    Post subject:
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    Post subject: Re: How to run a single proc n times in a jcl?
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 31, 2007 5:35 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us