Get Profile Token Time Out (QSYGETPT, QsyGetPrfTknTimeOut) API


  Required Parameter Group for QSYGETPT:

1 Time out Output Binary(4)
2 Profile token Input Char(32)
3 Error code I/O Char(*)

  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyGetPrfTknTimeOut:
 #include <qsyptkn.h>

 void QsyGetPrfTknTimeOut
        (int            *Time_out,            
         unsigned char  *Profile_token,
         void           *Error_code);

  Service Program: QSYPTKN

  Default Public Authority: *USE

  Threadsafe: Yes

The Get Profile Token Time Out (OPM, QSYGETPT; ILE, QsyGetPrfTknTimeOut) API gets the number of seconds until a profile token is not valid.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Time out
OUTPUT; BINARY(4)

The seconds until the profile token times out. If 0 is returned, the profile token is no longer valid.

Profile token
Input; CHAR(32)

The profile token for which to get the time out.

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.
CPF3CF1 E Error code parameter not valid.
CPF3C36 E Number of parameters, &1, entered for this API was not valid.
CPF3C90 E Literal value cannot be changed.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.


API introduced: V4R5

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