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

How to Code this in ESP Scheduler


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sophia

New User


Joined: 30 Jun 2007
Posts: 19
Location: United States

PostPosted: Sat Feb 19, 2011 3:25 pm
Reply with quote

can you help me with the coding this in ESP? I have two jobs that would run quarterly

JOB A schedule requirement
1. Ran once in Jan and if it is the 4th,or 5th or 6th or 7th or 8th or 9th or 10th of Jan falling on a SAT
example: Jan 8 2011
2. Ran once in March, June, September next Sat of the period Calendar
Example:
period calendar day:
1.March 25
2.June 18
3. September 10
Expected day the job woul run
1.April 2
2.June 25
3. September 17

JOB B schedule requirement
would run one week after the JOB A ran (it should be a Saturday)

I'm thinking that GENTIME will be great for this complex schedule but not sure how to code it. Thanks in advance
Back to top
View user's profile Send private message
sophia

New User


Joined: 30 Jun 2007
Posts: 19
Location: United States

PostPosted: Sat Feb 19, 2011 4:31 pm
Reply with quote

I've formulated this schedule not sure if this would be the correct way to do it:

For Job A
JOB JOBA
RESOURCE ADD(1,MFRES)
CCCHK RC(5:4095) FAIL
CCCHK RC(0:4) OK
RUN 1ST SAT OF JAN
RUN 2ND SAT OF JAN
NORUN 1ST DAY OF JAN
NORUN 2ND DAY OF JAN
NORUN 3RD DAY OF JAN
NORUN 11TH DAY OF JAN
NORUN 12TH DAY OF JAN
NORUN 13TH DAY OF JAN
NORUN 14TH DAY OF JAN
NORUN 15TH DAY OF JAN
NORUN 16TH DAY OF JAN
NORUN 17TH DAY OF JAN
RUN SAT OF MAR JUN SEP PERIOD_CAL PLUS 7 DAYS
DELAYSUB 09:00
ENDJOB


For Job B
JOB JOB B
RESOURCE ADD(1,MFRES)
CCCHK RC(5:4095) FAIL
CCCHK RC(0:4) OK
RUN 2ND SAT OF JAN
RUN 3RD SAT OF JAN
NORUN 8TH DAY OF JAN
NORUN 9TH DAY OF JAN
NORUN 10TH DAY OF JAN
NORUN 18TH DAY OF JAN
NORUN 19TH DAY OF JAN
NORUN 20TH DAY OF JAN
NORUN 21ST DAY OF JAN
NORUN 22ND DAY OF JAN
NORUN 23TH DAY OF JAN
NORUN 24TH DAY OF JAN
RUN SAT OF MAR JUN SEP PERIOD_CAL PLUS 14 DAYS
DELAYSUB 07:00
ENDJOB
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts OPCP scheduler questio IBM Tools 0
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top