Check Profile Token User (QSYCHKTU, QsyChkPrfTknUser) API


  Required Parameter Group for QSYCHKTU:

1 Result Output Bin(4)
2 Profile token Input Char(32)
3 Error Code I/O Char(*)

  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyChkPrfTknUser:
 #include <qsyptkn.h>

 void QsyChkPrfTknUser
        (int            *Result,
         unsigned char  *Profile_token,
         void           *Error_code);

  Service Program: QSYPTKN

  Default Public Authority: *USE

  Threadsafe: Yes

The Check Profile Token User (OPM, QSYCHKTU; ILE, QsyChkPrfTknUser) API verifies that the user profile associated with the token is the same as the current user profile in the thread. No other attributes associated with the token are compared with the attributes of the current thread.


Authorities and Locks

None.


Required Parameter Group

Result
OUTPUT; BIN(4)

The results from the check. If 1 is returned, the profile associated with the token is the same as the current user profile in the thread. If 0 is returned, the profile associated with the token is different from the current user profile in the thread.

Profile token
INPUT; CHAR(32)

The profile token to be checked.

Error code
I/O; CHAR(*)

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


Error Messages

Message ID Error Message Text
CPF2225 E Not able to allocate internal system object.
CPF2274 E Profile token is not valid.
CPF3C90 E Literal value cannot be changed.
CPF3CF1 E Error code parameter not valid.
CPF3C36 E Number of parameters, &, entered for this API was not valid.
CPF9872 E Program or service program & in library &2 ended. Reason code &3.


API introduced: V5R1

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