|
View previous topic :: View next topic
|
| Author |
Message |
Karthikeyan Subbarayan
New User

Joined: 24 Feb 2008 Posts: 62 Location: Boston
|
|
|
|
Hi,
I have a requirement where i need to run a JCL for 2 hrs in Recursive execution then stop after the specific time line.
Thanks,
KS |
|
| Back to top |
|
 |
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
That is such a bad idea.
This sounds like the solution was determined in the requirement.
That is such a bad idea.
What does this 'JCL' do?
That is such a bad idea.
What is it exactly you are trying to achieve?
That is such a bad idea.
How long does this Job run for?
That is such a bad idea.
JCL can not run recursively.
That is such a bad idea.
Guess what I think about this idea? |
|
| Back to top |
|
 |
Karthikeyan Subbarayan
New User

Joined: 24 Feb 2008 Posts: 62 Location: Boston
|
|
|
|
daveporcelan, you are right this seems to be bad idea for me too!
ok, I tell you why i came up with this idea.
This is Event trigger JCL, To unload the Queue and process the data from the queue. Usually this job run for less than a min.
The Production scheduler will shut down every day for almost half hour, At that time frame when the user sends data to the queue we are unable to process this JCL unless the scheduler turns up.
Now we don't want to wait JCL without processing until the scheduler is not up.
So I thought before the scheduler goes down if we kick up this JCL and continue to run all the time till the schedulers is back.
Do I am Clear ? |
|
| Back to top |
|
 |
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Well, I understand but JCL does not have recursion - it simply tells the OS what programs you want to run and what resources those programs need.
You could, probably, set up a job to be executed when the scheduler goes down (but why does it go down, for goodness sake?!) and it will request a special program that will do what you want - work/sleep/work etc for 30 minutes but it IS a bad idea.
The other option is to bring the scheduler down when there are no transactions coming through e.g. overnight - late (early hours) |
|
| Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3109 Location: NYC,USA
|
|
|
|
Again , why does JCL needs to be recursive?
I believe this has to do with the application program, something like
1) Read the messages from queue until end of message and then process them.
2) In any case of no messages are present in the queue then delay the process by ( let us say 5 minute)
3) Again perform point #1
4) In the start of the program you can get the TIME and during the above processing you keep on getting the current Time and if the difference of these 2 timings is around 2 hours then you can STOP the program.
5) so before a STOP is issued make sure all the message are read from the queue just to avoid any partial processing. |
|
| Back to top |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
| This cannot be done with JCL alone (almost nothing that is pleaded for can), but could be done with Rexx. To the left, I agree with Mr. Porcelan that this is a very bad idea, and recommend that other possibilities be explored. To begin with, why can this task not wait until the scheduler is up? |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| The Production scheduler will shut down every day for almost half hour, At that time frame when the user sends data to the queue we are unable to process this JCL unless the scheduler turns up. |
Why is waiting an issue? |
|
| Back to top |
|
 |
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
| What type of queue? Depending on where you are unloading FROM, it may be possible to have the queue manager kick off the job. |
|
| Back to top |
|
 |
|
|