Previous Topic: Writing CA Automation Point Rules

Next Topic: Rules Keywords Used for AS/400


Environmental Variables for AS/400 Manager

AS/400 Manager recognizes these environmental variables:

Variable

Description

&DATE

The current date in the form MM/DD/YY.

&DAY

The day: MON, TUE, WED, THU, FRI, SAT, or SUN.

&HOSTTIME

The time of the alert message from the Display Alert Detail screen, in the form HH:MM:SS.

&JOBNAME

The name of the AS/400 system the current message came from.

&JULDATE

The Julian date in the form YYNNN.

&MSG

The first 129 characters of the message. The message is the alert message ID, alert type, and alert description if the alert message ID is UNKNOWN or the alert message ID and alert message text.

&SYSNAME

The name of the AS/400 system the current message came from.

&TIME

The workstation time in the form HH:MM:SS.

&WORD1 up to &WORD85

Words from the alert text or application command.

For focal point machines, you can use the &SYSNAME variable to differentiate between systems. For example, the following rule executes only when the CPA5305 message is received from system S44A0060:

MSGID(CPA5305) WHEN(&SYSNAME EQ S44A0060) …

Note: The value of &SESSION is always AS400RUL.