Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

TASK-MODE( ) Request task mode

&pagelevel(3)&pagelevel

Domain: Task-specific environment information

Supplies the mode of the current task.

Format

TASK-MODE( )


Result type

STRING (<string 2..6>)

Input parameters

None

Result

BATCH
The current task is running in batch mode, i.e. asynchronously as a batch job in the background.

DIALOG
The current task is an interactive task.

SYSTEM
The current task is a system task.

TP
The current task is running in TP mode.

Error messages

No error messages

Example

/A = TASK-MODE()
/SHOW-VARIABLE A
A = DIALOG