System Variable Clauses; Printing The Current Date Or Time; Printing Line Numbers; Printing Page Numbers - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

System Variable
The System Variable clauses allow you to obtain the current value for the current date,
Clauses
time, line number, and page number. The syntax for the System Variable clauses is:
@DATE
@TIME
@LINENO
@PAGENO
Printing the Current
The @DATE and @TIME System Variable clauses return the current date and time in
Date or Time
internal format. When used in an expression, ENFORM treats them as numeric
literals.
When the @DATE or @TIME system variables are to be printed on a report, convert
them to a display format using the AS DATE or AS TIME clauses. Frequently the
default format is satisfactory and can be specified by:
For more information on date and time display formats, refer to the AS DATE and AS
TIME clauses in this section.

Printing Line Numbers

The @LINENO System Variable clause prints the current line number within a page of
the report. @LINENO can be a target-item in a LIST statement, part of an AFTER
CHANGE, BEFORE CHANGE, AT START, AT END, FOOTING, TITLE,
SUBFOOTING, and SUBTITLE clauses or statements.
The @LINENO option variable specifies how many lines are printed on a page. It is
initially set to 60 lines. To change the number of lines to be printed per page, reset the
@LINENO Option Variable clause. Refer to the SET statement in Section 4 and the
Option Variable clauses in this section.

Printing Page Numbers

The @PAGENO System Variable prints the page number. The following example
prints the page number at the top of a page:
058057 Tandem Computers Incorporated
@DATE AS DATE *
TITLE TAB 100 "Page " @PAGENO;
Clauses

System Variable Clauses

Page 10
5–65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents