View previous topic :: View next topic
|
Author |
Message |
gkanthavel
New User
Joined: 14 May 2007 Posts: 5 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
pcoreddy
New User
Joined: 14 Mar 2007 Posts: 24 Location: Mysore
|
|
|
|
tell me your exact requirement
without changing anything why do you want to run the same proc n times?
Regards
Chandra |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
hmm..I dont know why the previous post came 3 times..!!
I dont know the reason behind , I am sorry.
(Here is a request:
Moderator/Admin, please provide some delete-button to avoid such situations) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hey Thanks Moderator/s for deleting extra posts. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
gkanthavel
New User
Joined: 14 May 2007 Posts: 5 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
how do you ask the production people to restart the job? |
Very nicely
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 |
|
|
|