While these statistics can be exposed using the ASBMAN tool, there is no API to query these directly from an ABL client.
If the client is running on a machine where the ASBMAN tool is available, and under an account that has the required privileges:
- The ASBMAN tool can be used from the ABL using the INPUT THROUGH statement to run the ASBMAN command to redirect the output to an input stream for the client.
- A loop with an IMPORT UNFORMATTED statement to read the asbman's output line by line, which is effectively the same as reading a text file.
- Then the ASBMAN output can be parsed using ABL string manipulation functions for the statistics needed.