Kbase P79459: How to determine using 4GL if the current session is running in a batch mode?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/6/2004 |
|
Status: Unverified
GOAL:
How to determine using 4GL if the current session is running in a batch mode?
FIX:
Use either the Progress built-in preprocessor name References {&BATCH-MODE} or the Progress session's BATCH-MODE attribute:
IF {&BATCH-MODE} THEN
/* code to execute in batch mode */
ELSE
/* code to execute in interactive mode */
OR:
IF SESSION:BATCH-MODE THEN
/* code to execute in batch mode */
ELSE
/* code to execute in interactive mode */