Purpose
Determines the application's environment.
Status conditions can be tested in both online and batch environments.
Syntax
►►──────┬─ $BATCH ─┬─────────────────────────────────────────────────────────►◄ └─ $ONLINE ─┘
Parameters
Is true when the dialog is executing in the batch environment.
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.
|
Copyright © 2014 CA.
All rights reserved.
|
|