Previous Topic: Specify Operator Dataset VariablesNext Topic: Statements


Specify System Dataset Variables

The system dataset for a process contains variables that return system information. The System keyword is used to access the system dataset. You can use either dot (.) or bracket ([expression]) notation to specify a system variable in an expression:

System.variable_name
System[expression]

The following syntax uses bracket notation to specify a system variable name with a literal string:

System["variable_name"]

The system dataset contains the following variables:

DATE

The current date, in the format MM/DD/YY.

DAY

The day of the month.

FIRSTDAYMONTH

The date of the first day of the current month in the format MM/DD/YY.

FIRSTDAYNEXTMONTH

The date of the first day of the next month, in the format MM/DD/YY.

FIRSTDAYPREVMONTH

The date of the first day of the previous month, in the format MM/DD/YY.

HOST

The name of the current host.

LASTDAYMONTH

The date of the last day of the current month, in the format MM/DD/YY.

LASTDAYNEXTMONTH

The date of the last day of the next month, in the format MM/DD/YY.

LASTDAYPREVMONTH

The date of the last day of the previous month, in the format MM/DD/YY.

MONTH

The current month, represented as a zero-based number (for example, this variable returns 0 for January).

TIME

The current time of day, in minutes (for example, this variable returns 600 for 10AM).

TIMES

The current time of day, in the format HHMM.

TOMORROW

The date of the day that follows the current date, in the format MM/DD/YY.

WEEK

The week of the month.

YEAR

The current year.

YESTERDAY

The date of the day that precedes the current day, in the format MM/DD/YY.