Use the CHKOBJ command and monitor for the messages;
Here is what you can monitor for:
*ESCAPE Messages
CPF9801 Object &2 in library &3 not found.
CPF9802 Not authorized to object &2 in &3.
CPF9810 Library &1 not found.
CPF9815 Member &5 file &2 in library &3 not found.
CPF9820 Not authorized to use library &1.
CPF9830 Cannot assign library &1.
CPF9899 Error occurred during processing of command
Since this is tagged with "COBOL", are you looking for how to do it in code? If so, the Check User Authority to an Object (QSYCUSRA) API is probably easiest.
Tom
That's one part. At least three additional elements of the results shown by DSPOBJAUT might need to be checked. And the actual question needs to be clarified. If you are manually checking, you would do it differently than if you were checking by programming code. -- Tom
Discuss This Question: 6  Replies