Pre-Defined Variables

Some pre-defined variables are available in formulas:

Variable Name

Return Value

CLIENT_NAME

Your company name

CLOCK

Current time

DB_NAME

Name of the database against which the report is being run

FILENAME

Name of the file being printed

LOGGED_ON

TRUE if user has logged on via menu

NOW

Current time

NULL

The null value

OUTPUT_DEVICE

Output device combination. For Example: Screen, file or printer

PAGE_DEPTH

Number of lines that can be printed on a page

PAGE_NR

Number of page being printed

READ_ACCESS

User's read access level

REPORT_NAME

Name of the report program

START_DATE

Date program was loaded

START_TIME

Time program was loaded

SYS_CLOCK

Current time

SYS_DATE

Today's date

TODAY

Today's date

USER_LANGUAGE

User's selected language code

USER_NAME

Name of logged user

WRITE_ACCESS

User's write access level

You cannot print predefined variables out directly, you must use them in formulas.