Adding multiple library on User profile

360 pts.
Tags:
iSeries
iSeries applications
iSeries data center
iSeries RPG programming
What command is used to add multiple/several libraries on a single user profile? So that when the user logs to the system, only the listed library will be his default plus the global default (from system values). Thank you

Answer Wiki

Thanks. We'll let you know when a new response is added.

What do you mean by adding multiple library?
Will it mean adding multiple Libraries to Library list as soon as you login to system under initial library list.

For adding the libraries to intial Library list, You will need to change the User profile.
By using CHGUSRPRF command, and then by taking F10, You will find the below option
<pre> Job description . . . . . . . . JOBDNAM Name, *SAME
Library . . . . . . . . . . . LIBNAM Name, *LIBL, *CURLIB </pre>

and by using CHGJOBD command, taking F10, you can change the initial Library list.
You can add you your own libraries along with system Libraries.
<pre>Initial library list . . . . . . LIBRARY1 Name, *SAME, *SYSVAL, *NONE
LIBRARY2
LIBRARY3 </pre>
This Library lsit will appear in your library list as soon as you login.

Pradeep.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    First you ask about multiple libraries: ...to add multiple/several libraries on a single user profile? Then you ask about a single default library: ...only the listed library will be his default Are you looking for a single default library? Or are you needing a list of default libraries for a user? Tom
    125,585 pointsBadges:
    report
  • Jedlasquite
    Will it mean adding multiple Libraries to Library list as soon as you login to system under initial library list. - yes adding 2 or more libraries to a specific profile. Will test the procedure suggested. Thank you
    360 pointsBadges:
    report
  • Jedlasquite
    Sorry Tom, What I mean is multiple libraries during signon of a specific user. Are you looking for a single default library? Or are you needing a list of default libraries for a user? - I am needing a list of default libraries for a specific user. What I plan to do is put on the "list of libraries" only the user libraries, then system libraries on system value (which is my default) - Is this possible in the procedure sent by Deepu9321 Thanks
    360 pointsBadges:
    report
  • TomLiotta
    What I plan to do is put on the “list of libraries” only the user libraries, then system libraries on system value (which is my default) There are two system-wide lists available. Both are stored in system values. One is the 'system portion' of library lists and is stored in system value QSYSLIBL. The other is the default 'user portion' and is stored in QUSRLIBL. Every job on the system receives the same 'system portion'. These libraries should be for system functions that are not part of your applications. The QSYS library that contains the operating system is the major example of a library that belongs in the system portion. It should be at the top of the list. (One exception that is often made is for a library that holds objects that override operating system objects such as default printer files or commands with changed defaults.) Each job also is assigned a user portion. This generally comes from the job description that is associated with the job. The job description can have one of three possible configurations. It can:
    1. Specify *SYSVAL to assign the list from QUSRLIBL.
    2. Specify *NONE to assign an empty user portion to the job.
    3. Provide a selected list of libraries.
    So, as the system is creating a new job, the job's library list is set with the value from QSYSLIBL plus the value from the job description. (There are exceptions such as when a SBMJOB command specifies how to set the user portion of the list.) The primary tool for controlling the user portion of the library list for an interactive job is the job description that is assigned to the user who is signing on. You might create job descriptions for individual users, or you might create a job description that is assigned to several users who need the same list. In addition, you can assign a single library as the 'current library' for a user. Different users can have the same current library, or you can have each user getting a library of their own. For an interactive job, the user portion of the library list is specified through the job description that is assigned to the user. The current library comes from the user profile of the user. The system portion comes from the QSYSLIBL system value. Those can all be customized by setting 'initial programs' for user profiles. The system will call an initial program when a user logs on to an interactive session. The program can make any detailed changes to the job's library list that it has the authority to do. Initial programs are specified on user profiles. Those are the basics. If anything seems to match with what you're looking for, we can supply help. Tom
    125,585 pointsBadges:
    report
  • deepu9321
    You Specify *SYSVAL to assign the list from QUSRLIBL. or You can list all the libraries along with system libraries. Pradeep.
    3,695 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following