I WANT TO CREATE RPG PROGRAM TO GET THE LIBRARY LIST FOR PERTICULER USER ID.
ALREADY I CREATED PROGRAM BASED ON JOB DESCRIPTION.
Are you trying to retrieve the library list of a particular user’s current library list(which is currently active through interactive session)?
how to get library list for perticuler user profile?
User profiles don’t have library lists. Jobs have library lists.
You might want to know what job description is associated with a user profile. You can use the RTVUSRPRF command in CL or call the Retrieve User Information (QSYRUSRI) API with format USRI0300 in any available language to retrieve the name and library of the user’s default job description.
If you have the name of a job description, then you can call the job description API to see what library list is given for it.