PDA

View Full Version : Alter startup library list


ktoole
01-13-2010, 12:45 PM
Question about the startup jobs that run before you login. I would like to have some other iSeries libraries in the libl on login. I noticed that VALENCE20 is there, how does this get added and can I add a few of our libraries?

sean.lanktree
01-13-2010, 12:55 PM
I would suggest adding code to the top of VVLOGIN that would add the libraries you need to your job.

The QCMDEXC command is already prototyped in VVLOGIN (through copy source). So try the following:


SysCommand('ADDLIBLE LIB(MYLIBRARY)':500);
SysCommand('ADDLIBLE LIB(ANOTHERLIB)':500);


This method would ONLY apply to VVLOGIN. After passing through VVLOGIN, the library list is automatically handled for you as a result of the environment you log into.

richard.milone
01-13-2010, 01:21 PM
You'll probably want to call that SysCommand with a callp(e) so that the job won't error if the library is already in the list, like:

callp(e) SysCommand('ADDLIBLE LIB(MYLIBRARY)':500);
callp(e) SysCommand('ADDLIBLE LIB(ANOTHERLIB)':500);