Change Function Usage Information (QSYCHFUI, QsyChangeFunctionUsageInfo) API


Required Parameter Group for QSYCHFUI:


  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyChangeFunctionUsageInfo:
 #include <qsyfnusg.h>

 void QsyChangeFunctionUsageInfo
        (char     Function_ID[30],
         char     Format_name[8],
         void    *Function_usage_information
         int     *Length_of_function_usage_information,
         void    *Error_code);

  Service Program: QSYFNUSG

  Default Public Authority: *USE

  Threadsafe: Yes

The Change Function Usage Information (OPM, QSYCHFUI; ILE, QsyChangeFunctionUsageInfo) API changes the usage information for a function. The usage information for a function indicates which user profiles are allowed or not allowed to use a function.

The usage information is stored with the user profile. To save and restore the usage information, you must use the same methods as with other user profile information (Save Security Data (SAVSECDTA) command, Restore User Profiles (RSTUSRPRF) command, Restore Authority (RSTAUT) command).


Authorities and Locks

API Public Authority
*USE
Authority Required
*SECADM special authority
Usage Information Lock
*EXCL

Required Parameter Group

Function ID
INPUT; CHAR(30)

The ID of the function for which usage information is being changed.

Format name
INPUT; CHAR(8)

The format of the function usage information.

The valid value is:


Function usage information
INPUT; CHAR(*)

The usage information that is being changed for the specified function. See CFUI0100 Format for the definition of the fields for this parameter.

Length of function usage information
INPUT; BINARY(4)

The length of the function usage information. This area must be as large as the format specified.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


CFUI0100 Format

The following table shows the information that must be specified in the function usage information parameter when format CFUI0100 is specified. For a detailed description of each field, see Field Descriptions.



Field Descriptions

Number of usage information entries. The total number of usage information entries. This value must be greater than 0.

Usage information entries. The entries that contain the usage information.

Usage setting. Whether the user is allowed to use the function or not.

The following values can be specified:

User profile name. The name of the user profile whose usage setting is being changed. The user profile must exist.


Error Messages



API introduced: V4R3

[ Back to top | Security APIs | APIs by category ]