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

CA7 - Monthly job schedule


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

New User


Joined: 16 Jul 2016
Posts: 22
Location: desk

PostPosted: Tue Apr 03, 2018 12:15 am
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 03, 2018 12:50 am
Reply with quote

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

New User


Joined: 16 Jul 2016
Posts: 22
Location: desk

PostPosted: Tue Apr 03, 2018 1:11 am
Reply with quote

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

New User


Joined: 16 Jul 2016
Posts: 22
Location: desk

PostPosted: Tue Apr 03, 2018 1:29 am
Reply with quote

My bad, I looked at the wrong calendar. SCHDYONLY is not set in the calendar my job is running.

Code:
SCHD DAY ONLY = N


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

New User


Joined: 16 Jul 2016
Posts: 22
Location: desk

PostPosted: Tue Apr 03, 2018 9:23 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 03, 2018 9:33 pm
Reply with quote

Glad to hear you got it resolved!
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 How to find jobs that are in schedule... All Other Mainframe Topics 5
No new posts JCL to fetch schedule status from act... CA Products 1
No new posts How to hold a daily job for a monthly... CA Products 8
No new posts How to schedule jobs in mainframes? I... All Other Mainframe Topics 4
No new posts Identify the last schedule change of ... CA Products 2
Search our Forums:

Back to Top