View previous topic :: View next topic
|
Author |
Message |
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Hello Everyone,
We have a job which is scheduled as below. In month end we expected the job to run under SCHID = 002. I am not sure what went wrong but the job got triggered under SCHID = 001 on 30th March
Code: |
ID=001 ROLL=D INDEX=+000
SCAL= DOTM=2016 LEADTM=0001 SUBTM=2015 STARTM=2015
WEEKLY DAY=MON,TUE,WED,THU,FRI
MONTHLY NRDAY=-00 MONTH=ALL
ID=002 ROLL=B INDEX=+000
SCAL= DOTM=2016 LEADTM=0001 SUBTM=2015 STARTM=2015
MONTHLY RDAY=-00 MONTH=ALL
|
Below is how the calendar for march looks like
Code: |
MONTH 03 MAR
SUN MON TUE WED THU FRI SAT
.B03. 02
05 06 07 08 09
12 13 14 15 16
19 20 21 22 23
26 27 28 29 30 (E03) |
Month end job which is scheduled similar to SCHID=002 ran correctly.
Any pointer on what could have went wrong here will be really helpful.
Thanks in advance. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
From the CA-7 manual on Job Scheduling Parameter Edit Panel:
Quote: |
Note: RDAY(S) represents calendar days, unless the base calendar was generated with OPTIONS=SCHDYONLY, in which case RDAY(S) represents processing days. |
I would guess you didn't generate the base calendar with OPTIONS=SCHDYONLY and hence your last day of the month was not a processing day. |
|
Back to top |
|
|
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Calendar is defined with option SCHDYONLY. Using below command identified the job was triggered under both the SCHID on 30th March. Operator cancelled SCHID 002.
Code: |
LSCHD,JOB=XXXXXXXX,LIST=BYSID |
Now arises the question why it came into queue with both SCHID. |
|
Back to top |
|
|
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
My bad, I looked at the wrong calendar. SCHDYONLY is not set in the calendar my job is running.
Even then, with NRDAY and RDAY I don't see a reason how the job did came out into queue on same day. |
|
Back to top |
|
|
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Thank you @Robert Sample
SCHDYONLY = 'N' - days are calculated based on calendar days
Using above rule my current CA7 definition calculated the last day of month (RDAY=-00) as 31st march.
SCHID=001 has restriction not to come out on NRDAY=-00. Since 30th march is not a month end, job came into queue.
SCHID=002 has restriction to run only on RDAY=-00. But with ROLL='B' the job came into queue on 30th march.
SCHDYONLY = 'Y' - Days are calculated based on business days
By changing my job to use a equivalent calendar with SCHDYONLY = 'Y' resolved my issue. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear you got it resolved! |
|
Back to top |
|
|
|