Previous Topic: SASSHIS8 Explicit RangesNext Topic: SASSHIS8 Sample Ranges


SASSHIS8 Range Literals

The second technique lets you prepare the control records, for most reporting requirements, with a single literal. This technique causes the program to determine the date and time fields dynamically at execution time. This technique also eliminates the need for changing the control record for each run.

Whenever a literal is used, it is entered in the From Date field. No date/time values are entered in the From Time and Thru Date and Thru Time fields. The program determines these dates based on the literal specified and the current system date.

Two types of literal groups are available. One group is used to request to-date reports such as week-to-date, month-to-date, and so forth. The other group is used to request reports for reporting periods that have already ended.

Literals for to-date reporting and their meanings are as follows:

TODAY

Indicates all data with the current date.

TWEEK

Indicates all data produced this calendar week, last Sunday's date through today.

TMNTH

Indicates all data produced this calendar month, beginning with the date of the first day of the current month through today.

TQRTR

Indicates all data produced this quarter, beginning with the date of the first day of the month two months ago, plus the current month through today. (Not calendar quarter.)

nnHRS

Indicates nn hours. (This literal is useful for the Recovery aid reports.)

nnDAY

Indicates nn days through current date/time.

Literals for prior reporting periods (whose end times have already passed) and their meanings are as follows:

-nDAY

Indicates the previous n 24-hour periods. This literal generates a control statement with a beginning time of 0000 and an ending time of 2400, encompassing the number of days specified by n (where ending date/time is yesterday at midnight).

LWEEK

Indicates the previous Sunday through Saturday.

LMNTH

Indicates the previous calendar month.

LQRTR

Indicates the previous three consecutive months.