Previous Topic: Dialog Execution Status ConditionNext Topic: Level-88 Condition


Environment Status Condition

Purpose

Determines the application's environment.

Status conditions can be tested in both online and batch environments.

Syntax

►►──────┬─ $BATCH  ─┬─────────────────────────────────────────────────────────►◄
        └─ $ONLINE ─┘

Parameters

$BATCH

Is true when the dialog is executing in the batch environment.

$ONLINE

Is true when the dialog is executing in the online environment.

Example

In the following example, different types of processing are performed, depending on the runtime environment.

IF $ONLINE
  THEN
    DISPLAY.
  ELSE
    WRITE TRANSACTION.