![]() SESSION.MODE |
![]() DEVELOPER |
![]() |
Get Kernel Mode
General Property
Different under S/390 environments
Purpose
SESSION.MODE returns the mode in which the kernel is running. For non-S/390 environments, the valid modes are:
-
Batch
-
Standard
-
Component
For non-S/390 environments, the following modes can be returned:
S/390 Session modes
Mode |
Meaning |
Batch |
S/390 PROIV running in batch |
Standard |
Online, interactive PROIV session under CICS/ESA |
Component |
S/390 PROIV called from a distributed application via the PROIV Kernel Manager component |
API |
S/390 PROIV called from another CICS or S/390-based application via the PROIV supplied API module. |
Syntax
<string-variable> = SESSION.MODE
Remarks
Component mode indicates execution is via the PROIV Bus.
Example
$A = SESSION.MODE
If $A = “BATCH", the kernel is executing in batch mode
If $A = "COMPONENT", the kernel is in component mode
If $A = "STANDARD", the kernel is in standard mode
Topic ID: 540137