1 | Usage indicator | Output | Char(1) |
2 | Function ID | Input | Char(30) |
3 | User profile name | Input | Char(10) |
4 | Error code | I/O | Char(*) |
#include <qsyfnusg.h> void QsyCheckUserFunctionUsage (char *Usage_indicator, char Function_ID[30], char User_profile_name[10], void *Error_code);Service Program: QSYFNUSG
The Check User Function Usage (OPM, QSYCKUFU; ILE, QsyCheckUserFunctionUsage) API checks to see if a user is allowed to use the specified function, and returns an indication of whether the user is allowed to use the function. When the check is made, the usage setting for the user, its group, the default usage value, and the allow *ALLOBJ indicator for the function are taken into account. Following are the steps the system takes to determine the usage indicator for the user to the function:
Whether the user is allowed to use the specified function.
This parameter contains one of the following values:
1 | The user is not allowed to use the specified function. |
2 | The user is allowed to use the specified function. |
The ID of the function to check usage information for.
The name of the user to check for usage to the specified function.
You can specify the following special value:
*CURRENT | The usage check is made for the user currently running. |
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
Message ID | Error Message Text |
---|---|
CPF2204 E | User profile &1 not found. |
CPF2225 E | Not able to allocate internal system object. |
CPF228A E | Function &1 not registered. |
CPF3C36 E | Number of parameters, &1, entered for this API was not valid. |
CPF3C90 E | Literal value cannot be changed. |
CPF3CD9 E | Requested function cannot be performed at this time. |
CPF3CDA E | Registration facility repository not available for use. |
CPF3CF1 E | Error code parameter not valid. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF8100 E | All CPF81xx messages could be returned. xx is from 01 to FF. |
CPF9810 E | Library &1 not found. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
Top | Security APIs | APIs by category |