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:
Indicates all data with the current date.
Indicates all data produced this calendar week, last Sunday's date through today.
Indicates all data produced this calendar month, beginning with the date of the first day of the current month through today.
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.)
Indicates nn hours. (This literal is useful for the Recovery aid reports.)
Indicates nn days through current date/time.
Literals for prior reporting periods (whose end times have already passed) and their meanings are as follows:
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).
Indicates the previous Sunday through Saturday.
Indicates the previous calendar month.
Indicates the previous three consecutive months.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|