Retrieve User Print Info (RTVUSRPRTI)

The Retrieve User Print Information (RTVUSRPRTI) command is used in a CL program to retrieve the user print information value associated with a user profile. The values are returned in the specified CL variables for the desired user.

Parameters

Keyword Description Choices Notes
USER User Name, *CURRENT Required, Positional 1
RTNTEXT CL var for RTNTEXT Character value Required, Positional 2

User (USER)

Specifies the user whose user print information is being retrieved.

This is a required parameter.

*CURRENT
The user profile under which the current job is running is used.
name
Specify the name of the user whose user print information is being retrieved.

CL var for RTNTEXT (RTNTEXT)

Specifies a 10-character CL variable used to retrieve the user print information of the user profile for which information is requested.

This is a required parameter.

Examples

RTVUSRPRTI   USER(FEIST)  RTNTEXT(&TEXT)

This command retrieves user print information for user profile FEIST and stores it in CL program variable &TEXT.

Error messages

*ESCAPE Messages

CPF2204
User profile &1 not found.
CPF2217
Not authorized to user profile &1.
CPF2247
Internal security object not available. Reason code &1.
CPF34D5
CCSID translation error.