You could use the Retrieve Command Information (RTVCMDINF) published in
the System iNetwork Systems Management Newsletter recently:
Let me know if you have any problems accessing the article or code.
Sent: 5. september 2008 21:41
Subject: Find library of program to process a command
If you do a DSPCMD you can see the cl program that processes the
command and the library it is in.
I need a way to find all the commands in a library that do not have
as the library part of the "program to process command".
This communication is intended only for use by the addressee. It may contain confidential or privileged information. If you receive this communication unintentionally, please inform us immediately and delete this e-mail and any attachments. Warning: Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the use of this email or attachments.