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
 

 

Recursive execution of Jcl for specific time period.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Karthikeyan Subbarayan

New User


Joined: 24 Feb 2008
Posts: 56
Location: Boston

PostPosted: Thu Mar 06, 2014 1:49 am    Post subject: Recursive execution of Jcl for specific time period.
Reply with quote

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
View user's profile Send private message

daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Thu Mar 06, 2014 2:40 am    Post subject:
Reply with quote

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
View user's profile Send private message
Karthikeyan Subbarayan

New User


Joined: 24 Feb 2008
Posts: 56
Location: Boston

PostPosted: Thu Mar 06, 2014 2:58 am    Post subject: Reply to: Recursive execution of Jcl for specific time perio
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Thu Mar 06, 2014 3:17 am    Post subject: Reply to: Recursive execution of Jcl for specific time perio
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Thu Mar 06, 2014 3:28 am    Post subject:
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Thu Mar 06, 2014 6:41 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Mar 06, 2014 8:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Mar 06, 2014 8:27 pm    Post subject:
Reply with quote

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
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. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts how to split records based on specifi... Venkata Ramayya DFSORT/ICETOOL 6 Wed Sep 28, 2016 3:20 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm


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