View previous topic :: View next topic
|
Author |
Message |
sophia
New User
Joined: 30 Jun 2007 Posts: 19 Location: United States
|
|
|
|
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 |
|
|
sophia
New User
Joined: 30 Jun 2007 Posts: 19 Location: United States
|
|
|
|
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 |
|
|
|