Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Change Function Usage (CHGFCNUSG) command changes the allowed usage information of a registered function. Functions can be registered by using the Register Function (QSYRGFN) API.
Some functions provide other means to authorize users to the function. For example, a user that is not allowed to use the Service Trace (QIBM_SERVICE_TRACE) function will still be allowed to use the Trace Internal (TRCINT) command if they have service (*SERVICE) special authority.
Restrictions: You must have security administrator (*SECADM) special authority to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FCNID | Function ID | Simple name | Required, Positional 1 |
USER | User | Simple name | Optional |
USAGE | Usage | *ALLOWED, *DENIED, *NONE | Optional |
DEFAULT | Default authority | *SAME, *ALLOWED, *DENIED | Optional |
ALLOBJAUT | *ALLOBJ special authority | *SAME, *USED, *NOTUSED | Optional |
Top |
Specifies the function identifier for which the usage information is to be changed.
This is a required parameter.
Top |
Specifies the name of the user profile whose function usage information is to be changed.
Top |
Specifies the allowed usage of the user profile specified for the User (USER) parameter.
Top |
Specifies the default usage for the function. The default usage is used if the user or one of its groups does not have a specific usage setting.
Top |
Specifies whether all object (*ALLOBJ) special authority may be used to give a user access to the function.
Top |
CHGFCNUSG FCNID(QIBM_SERVICE_TRACE) DEFAULT(*DENIED) USER(QSRVBAS) USAGE(*ALLOWED)
This command denies access to the QIBM_SERVICE_TRACE function for the default user. It also allows the QSRVBAS user profile to use the function.
Top |
*ESCAPE Messages
Top |