Using the Retrieve User Profile Attributes (RTVUSRPRF) command, you can retrieve the attributes of a user profile (except for the password) and place their values in CL variables to control your applications.
On this command, you can specify either the 10-character user profile name or *CURRENT. You can also monitor for escape messages after running the Retrieve User Profile Attributes (RTVUSRPRF) command.