The facilities in 2E Toolkit to store and manipulate library lists are excellent but I think some are little known and yet incredibly useful.
You will be familiar with YWRKLIBLST to work with all your library lists with its various options to call other commands:
2 Edit YEDTLIBLST or L
3 Copy YCPYLIBLST
4 Delete YDLTLIBLST
5 Display YDSPLIBLST
6 Print YDOCLIBLST
7 Rename YRNMLIBLST
9 Replace YCHGLIBL or R
13 Change description YCHGLIBLST
And not forgetting YBLDLIBLST to create a library list initially.
A stored interactive library list can only have one batch job description associated with it. But what about updating other JOBDs also used with this model? We have an excellent command for that as well: YCHGJOBDLL, to update the JOBD’s library list from a stored library list.
When Support supplies a Test PTF to a client, there can often be that plaintive complaint: oh no, now I’ve got to update all my library lists to add in this library!
Yes that’s true but it doesn’t have to be painful since you have the library list entry commands: YADDLLE, YRMVLLE and YRNMLLE.
Let’s assume you have library lists for your models using 2E 8.6 with Cumulative PTF C like this: …genlib mdllib Y1860CC Y1SY Y2860CC Y2SY…
Now you want to update all the library lists to add in Test PTF Y2860C999, this is easily done:
YADDLLE LIB(Y2860C999) POSITION(*BEFORE Y2860CC) LIBLST(*ALL) to get: …genlib mdllib Y1860CC Y1SY Y2860C999 Y2860CC Y2SY…
A new Cumulative PTF D becomes available so you want to replace Y1860CC and Y2860CC with it:
YRNMLLE FROMLIB(Y1860CC) TOLIB(Y1860CD) LIBLST(*ALL)
YRNMLLE FROMLIB(Y2860CC) TOLIB(Y2860CD) LIBLST(*ALL) to get: …genlib mdllib Y1860CD Y1SY Y2860C999 Y2860CD Y2SY…
And of course remove the Test PTF Y2860C999 if this is part of the new cumulative:
YRMVLLE LIB(Y2860C999) LIBLST(*ALL) to get: …genlib mdllib Y1860CD Y1SY Y2860CD Y2SY…