Scheduler usage of criteria keyword WEEK1of5
search cancel

Scheduler usage of criteria keyword WEEK1of5

book

Article ID: 102374

calendar_today

Updated On:

Products

Scheduler Job Management

Issue/Introduction

Does Scheduler schedule with criteria of  WEEK1OF5 run the first week every month?

Resolution

Scheduler criteria of WEEK1OF5  for a schedule will only run the 1st week when there are only 5 weeks in a month which are most months.   However in September and December of 2018 there are 6 weeks in those months.  The schedule will not run in September and December 2018.

You can use REPORT DATETRAN to verify keyword criteria of WEEK1of5.

Go to Scheduler Online:
3 REPORTS - Execute and view reports 
then 
5 DATETRAN - Criteria keywords for a given date 

then enter datetab (or the name of your default datetable) and 12012018 

COMMAND ===> 

Date Table: 
Date Table . . . datetab 
In Schedule . . 
In Job . . . . . 

Options: 
Starting Date . . . 12012018 (mmddyy/mmddyyyy/ddmmyy/ddmmyyyy) 
Duration . . . . . (days) 

here is the display that you should receive 

REPORT DATETRAN TABLE=DATETAB,FROMDATE=12012018 
JULIAN DATE=2018335 TABLE NAME=DATETAB 
GREGORIAN DATE=12/01/2018 
DAY OF WEEK=SAT WEEK-DAY=NO WEEK-END=YES MWF=NO TT=NO 
NTH DAY OF MONTH=SAT1 SAT-5 NEGATIVE DAY OF MONTH=DOM-31 LEAP-YEAR=NO 
INTERNATIONAL WEEK OF YEAR=I-WOY48 I-WOY-5 
WEEK OF MONTH=1ST-WEEK WEEK OF YEAR=WOY48 WOY-6 DAYS IN MONTH=31 
DAY1OF2=YES DAY2OF2=NO 
DAY1OF3=YES DAY2OF3=NO DAY3OF3=NO 
DAY1OF4=NO DAY2OF4=NO DAY3OF4=YES DAY4OF4=NO 
DAY1OF5=NO DAY2OF5=NO DAY3OF5=NO DAY4OF5=NO DAY5OF5=YES 
DAY1OF6=YES DAY2OF6=NO DAY3OF6=NO DAY4OF6=NO DAY5OF6=NO DAY6OF6=NO 
WEEK1OF2=YES WEEK2OF2=NO 
WEEK1OF3=YES WEEK2OF3=NO WEEK3OF3=NO 
WEEK1OF4=YES WEEK2OF4=NO WEEK3OF4=NO WEEK4OF4=NO 
WEEK1OF5=NO WEEK2OF5=NO WEEK3OF5=NO WEEK4OF5=NO WEEK5OF5=YES 
WEEK1OF6=YES WEEK2OF6=NO WEEK3OF6=NO WEEK4OF6=NO WEEK5OF6=NO WEEK6OF6=NO 


NOTE that WEEK1OF5=NO which means it will not recognize Dec 1st to run and will only run if WEEK1of5=YES.
For December 1, 2018, WEEK1OF6=YES  since there are 6 weeks for the month of December.