One way is to use the Open List of ASPs (QYASPOL) API. Alternatvely, there are multiple commands that can print related information to a spoolfile whcih couold then be parsed – WRKDEVD DEVD(*ASP) and WRKASPBRM OUTPUT(*PRINT) , for instance. The latter is a BRMS command, so may not be available.
Hope that helps.
REGISTER or login: