Last year I wrote about a way to check if a subsystem was active or not. The statement combined two table functions and could only check if a subsystem was active, if it was not returned in the results it was assumed to be inactive. Included in the latest round of Technology Refreshes, IBM i 7.4 TR2 and 7.3 TR8, is a new SQL View all about subsystems, now I can get the same information just from one View, including the status of the subsystem.
The information I am interested from the View SUBSYSTEM_INFO is:
- Subsystem name and the library it resides in
- Status: active, inactive, etc
- Number of jobs currently running in the subsystem
- Maximum number of jobs that could run in the subsystem
- Job that is monitoring the subsystem