Previous Topic: Messages and the Menu ProgramNext Topic: Use of an Exception Message Queue


Security Considerations

To be able to execute a menu option, users must be authorized to the program or command that the option calls. The appropriate i OS error message will be displayed if the user is not authorized, namely:

CPD0032 : Not authorized to command CMDNAME in LIB

CPF9802 : Not authorized to object OBJNAME in LIB type PGM.

Authorization to menus - the right to display a menu or menus (though not necessarily to invoke the menu options) - can be implemented by dividing menus into separate files, and granting or revoking users’ authorizations to those files. For example:

GRTOBJAUT OBJ(YDSNMNU) OBJTYPE(*FILE) USER(FRED)         AUT(*READ)
 RVKOBJAUT OBJ(YDSNMNU) OBJTYPE(*FILE) USER(FRED)       AUT(*READ)