Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
CA7 - Monthly job schedule

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Benchwarmer

New User


Joined: 16 Jul 2016
Posts: 19
Location: desk

PostPosted: Tue Apr 03, 2018 12:15 am    Post subject: CA7 - Monthly job schedule
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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 03, 2018 12:50 am    Post subject: Reply to: CA7 - Monthly job schedule
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: 19
Location: desk

PostPosted: Tue Apr 03, 2018 1:11 am    Post subject:
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: 19
Location: desk

PostPosted: Tue Apr 03, 2018 1:29 am    Post subject:
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: 19
Location: desk

PostPosted: Tue Apr 03, 2018 9:23 pm    Post subject: Reply to: CA7 - Monthly job schedule
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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 03, 2018 9:33 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm
No new posts How to hold a daily job for a monthly... anandgbe CA Products 8 Mon Mar 07, 2016 12:59 pm
No new posts How to schedule jobs in mainframes? I... enrico-sorichetti All Other Mainframe Topics 4 Thu Feb 18, 2016 1:20 pm
No new posts Identify the last schedule change of ... rikdeb CA Products 2 Tue Sep 29, 2015 8:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us