Was this helpful?
Date, Time, and Page Components
You can choose whether to print the date, time, and page number on the pages of your report. By default, these components print in the following positions on each and every page of the report:
Date in upper left corner
Time in upper right corner
Page number centered at the bottom of page
You cannot change the print position of the page number, but you can reverse the date and time or print both in the upper left or upper right corners by using certain date and time formats, as described later in this section.
You can print or suppress each component independently of the others. The default for each component is yes. Enter n (no) in the Include in Report field for any component to omit it from your report.
For each component included in the report, you can specify a print format as indicated in the following table:
Report Component
Format
Date
Date and/or time format, or a character format (cannot be a multi‑line character format).
Time
Date and/or time format, or a character format (cannot be a multi‑line character format).
Page
Numeric format or template. You can include characters such as hyphens or parentheses if you dereference each one by preceding it with a backslash (\).
The Date and Time components both contain the same data value, which actually includes both a date and a time value. Therefore, when specifying a date template for the Date or Time components, you can use either or both the date and time designations. The portion of the date and time string used in your template determines whether the date, time, or both appear in that component's location on the page. For instance, specifying d'16:05:06' for the Date component and d'03‑feb‑1901' for the Time component prints the time in the upper left corner (where the Date component would ordinarily print) and the date in the upper right corner (where the Time component would ordinarily print).
Specifying c25 for a Date or Time component displays the component as dd‑mmm‑yyyy hh:mm:ss, which is equivalent to the date template, d'03-feb-1901 16:05:06'. You cannot specify a multi-line character format such as c30.5, cj30.15, or cf30.6 for the Date and Time components.
Component
Format
Sample Result
Date
d'03‑Feb‑1901'
12‑Sep‑1993
 
d'03‑Feb‑1901 16:05:06'
12‑Sep‑1993 17:07:55
 
d'04:05:06 PM'
05:07:55 PM
 
d'2/3/1'
9/12/93
 
d'02/03/01'
09/12/93
 
d'February'
September
 
d'010203'
930912
Time
d'04:05:06 PM'
05:07:55 PM
 
d'16:05:06'
17:07:55
 
d'03‑Feb‑1901 16:05:06'
14‑Sep‑1993 17:07:55
 
d'03‑Feb‑1901'
14‑Sep‑1993
Page
'\P\a\g\e zzz'
Page 123
 
'nnnnn'
00123
Last modified date: 11/28/2023