ENFORM User's Guide
Formatting a Report
Developing an ENFORM Query
3–58 058058 Tandem Computers Incorporated
Printing a Time Value on a Report
Use the AS TIME clause to specify printing of a time value in internal format on a
report. The AS TIME clause prints the time value by using the default time format or a
user-created time format.
Use the AS TIME clause to modify the system variable @TIME which returns the
current time. The following example prints the time value with the default time
format:
OPEN order;
LIST ordernum,
JULIAN-DATE((1900 + oyear),omonth,oday)
AS DATE "DA - MA DB2,Y4),
HEADING " DAY AND DATE ORDERED",
TITLE "OLD ORDERS" SPACE 10,
@TIME AS TIME *;
Report:
OLD ORDERS 09:51:32 AM
ORDERNUM
--------
21
25
30
32
Use the AS TIME clause to print the time with a user-created format as in the
following example:
OPEN order;
LIST ordernum,
TITLE "OLD ORDERS" SPACE 10,
@TIME AS TIME "HPB2:M2";
Report:
OLD ORDERS 9:51 AM
ORDERNUM
--------
21
25
...