This document http://docs.lansa.com/14/en/lansa048/in ... 8_6710.htm describes what to do (Changing Library List) but not really how to do it.
From this thread http://vlforum.lansa.com.au/viewtopic.p ... brary+list I think I need to call another program on the IBM i. Is that command CHGLIBL?
The way I understand it, is that it changes the library list for the current job. So I would need to change it back to its original state when I am done correct?
Is there anyway to get the current library list that can be stashed away while I change to the new library list, then I can restore the original?
Our test libraries are named something different then the actual libraries, even though they are on separate servers. So I can't hard code the library list without knowing which server I am running on.
For example,
On Dev, I need to go from XXDTALIBT to XXDTALIBCT and then back to XXDTALIBT.
On Production, I need to go from XXDTALIB to XXDTALIBC and then back to XXDTALIB.
Of course that just includes one library in the list, but that is the one I am changing.
If I can get the current library list and I can examine the contents, I could then make a distinction of which library I need to change to. Using CHGJOBD on Dev for DXCPGMLIB/DCXJOBD shows QTEMP, DCXCOMLIB, DCXPGMLIB, QGPL and XXDTALIBT.
I found this query
Code: Select all
SELECT ORDINAL_POSITION AS POS,
SYSTEM_SCHEMA_NAME AS LIBRARY,
TYPE,
CAST(TEXT_DESCRIPTION AS CHAR(50)) AS TEXT
FROM QSYS2.LIBRARY_LIST_INFO;
Is there a more correct, LANSA way to do this?