Subsystems can be monitored with monitoring job variables (MONJV). The MONJV must be specified in the START-SUBSYSTEM command. DSSM administers and sets the MONJV during the entire subsystem runtime until it is shut down, with:
explicit DSSM calls (/HOLD-SUBSYSTEM, /RESUME-SUBSYSTEM, /STOP-SUBSYSTEM, /UNLOCK-SUBSYSTEM)
implicit operations (subsystem, automatic restore ...)
SHUTDOWN
The MONJV indicates whether the subsystem is active, stopped, interrupted or locked. The MONJV can have the following contents:
Byte | Length | Contents | Values |
1 | 3 | Status | $R (running) / |
4 | 1 | Reserved | 0 |
5 | 4 | TSN | ???? (four question marks) |
9 | 4 | Home Catid | |
13 | 4 | Reserved | |
17 | 1 | Type | J / P / S |
18 | 53 | Reserved | |
71 | 3 | Session number | |
74 | 8 | Name of the subsystem | |
82 | 7 | Version of the subsystem | |
89 | 15 | Condition of the subsystem | for $R: created |
104 | 24 | Unused | |
128 | 127 | Reserved for subsystem users |