X13 Procedure

SAS Predefined Events

SAS predefined events are summarized in this section. For complete details about SAS predefined events, see the section "EVENTKEY Statement" in SAS Forecast Studio: User's Guide.

Table 11 shows a summary of the SAS predefined event keywords. Table 12 lists the holiday date keywords that can be used as SAS predefined events. Table 13 lists the seasonal date keywords that can be used as SAS predefined events.

Table 11: Definitions for EVENTKEY Predefined Event Keywords

Variable Name or Description Qualifier Options
Variable Name Format
AO<obs>OBS Outlier TYPE=POINT VALUE=1
AO<date>D BEFORE=(DURATION=0)
AO<datetime>DT AFTER=(DURATION=0)
LS<obs>OBS Level-shift TYPE=LS VALUE=1
LS<date>D BEFORE=(DURATION=0)
LS<datetime>DT AFTER=(DURATION=ALL)
TLS<obs>OBS<n> Temporary level-shift TYPE=LS VALUE=1
TLS<date>D<n> BEFORE=(DURATION=0)
TLS<datetime>DT<n> AFTER=(DURATION=<n>)
NLS<obs>OBS Negative level-shift TYPE=LS VALUE=–1
NLS<date>D BEFORE=(DURATION=0)
NLS<datetime>DT AFTER=(DURATION=ALL)
CBLS<obs>OBS US Census Bureau level-shift TYPE=LS VALUE=–1
CBLS<date>D SHIFT=–1
CBLS<datetime>DT BEFORE=(DURATION=ALL)
AFTER=(DURATION=0)
TC<obs>OBS Temporary change TYPE=TC VALUE=1
TC<date>D BEFORE=(DURATION=0)
TC<datetime>DT AFTER=(DURATION=ALL)
<date keyword> Date pulse TYPE=POINT VALUE=1
BEFORE=(DURATION=0)
AFTER=(DURATION=0)
PULSE=DAY
LINEAR Polynomial trends TYPE=LIN
QUAD TYPE=QUAD
CUBIC TYPE=CUBIC
VALUE=1 BEFORE=(DURATION=ALL)
AFTER=(DURATION=ALL)
The default timing value is the 0 observation.
INVERSE Trends TYPE=INV
LOG TYPE=LOG
VALUE=1 BEFORE=(DURATION=0)
AFTER=(DURATION=ALL)
The default timing value is the 0 observation.
<seasonal Seasonal TYPE=POINT
keywords> PULSE= depends on keyword
VALUE=1 BEFORE=(DURATION=0)
AFTER=(DURATION=0)
Timing values are based on keyword.


Table 12: Holiday Date Keywords and Definitions

Date Keyword Definition
BOXING December 26
CANADA July 1
CANADAOBSERVED July 1, or July 2 if July 1 is a Sunday
CHRISTMAS December 25
COLUMBUS Second Monday in October
EASTER Easter Sunday
FATHERS Third Sunday in June
HALLOWEEN October 31
JUNETEENTH June 19
JUNETEENTHUSG Juneteenth date observed by
US government for
Monday–Friday schedule
JUNETEENTHUSPS Juneteenth date observed by
US government for
Monday–Saturday schedule
(US Postal Service)
LABOR First Monday in September
MLK Third Monday in January
MEMORIAL Last Monday in May
MOTHERS Second Sunday in May
N<n>W<w><MON>YR Date specified by
NWKDOM( n, w, m, year ),
where m corresponds to the month
specified by MON and year
is any year relevant to the data
(example: N4W5NOVYR is the same as THANKSGIVING)
NEWYEAR January 1
THANKSGIVING Fourth Thursday in November
THANKSGIVINGCANADA Second Monday in October
USINDEPENDENCE July 4
USPRESIDENTS Third Monday in February (since 1971)
VALENTINES February 14
VETERANS November 11
VETERANSUSG Veterans Day date that is observed by
US government for
Monday–Friday schedule
VETERANSUSPS Veterans Day date that is observed by
US government for
Monday–Saturday schedule
(US Post Office)
VICTORIA Monday on or preceding May 24


Table 13: Seasonal Date Keywords and Definitions

Date Keyword Definition
SECOND_1, …, SECOND_60 Specified second
MINUTE_1, …, MINUTE_60 Beginning of the specified minute
HOUR_1, …, HOUR_24 Beginning of the specified hour
SUNDAY, …, SATURDAY All Sundays, and so on, in the time series
WEEK_1, …, WEEK_53 First day of the nth week of the year
(PULSE=WEEK.n shifts this date for n not-equals 1)
TENDAY_1, TENDAY_4, The first day of the month
…, TENDAY_34
TENDAY_2, TENDAY_5, The 11th day of the month
…, TENDAY_35
TENDAY_3, TENDAY_6, The 21st day of the month
…, TENDAY_36
SEMIMONTH_1, SEMIMONTH_3, The first day of the month
…, SEMIMONTH_23
SEMIMONTH_2, SEMIMONTH_4, The 16th day of the month
…, SEMIMONTH_24
JANUARY, …, DECEMBER The first day of the specified month
QTR_1, QTR_2, QTR_3, QTR_4 The first date of the quarter indicated after the underscore
(PULSE=QTR.n shifts this date for n not-equals 1)
SEMIYEAR_1, SEMIYEAR_2 The first date of the semiyear
(PULSE=SEMIYEAR.n shifts this date for n not-equals 1)


Last updated: June 19, 2025