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.
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
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
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
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:
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
You Specify *SYSVAL to assign the list from QUSRLIBL.
or You can list all the libraries along with system libraries.
Pradeep.