CMPOBJAUT
The mandate allows us, within a program, compare the authorization of an object to a particular user .
For example with the following mandate:
CMPOBJAUT LIB (MYLIB) OBJ (AN_OBJECT) TYPE (* FILE) USER (AN_USER) AUT (* USE) LGL (& MATCH) will verify
if the user has AN_USER * USE authority to the file MYLIB / AN_OBJECT, if it will return a '0 'in the variable & MATCH, if different returns '1'.
You can download the code for this utility Resources Group at IBM AS400 developersWorks
0 comments:
Post a Comment