rob@xxxxxxxxx wrote:
Ok, for those jobs where you need to sneak something higher in the library list and you do not want to change the supplied code to qualify qtemp, then you have to decide as to whether to modify that jobs particular library list temporarily (or for the duration of that one run with a special job description or some such thing). Then again, you could run it with a special command that had the CRTCMD use the "product library". That puts the product library way high on the library list - right between QSYSLIBL and QUSRLIBL parts. Don't know if you can use QTEMP as a product library. To see an example of a product library do the following
STRPDM
and at the command line of the pdm menu
DSPLIBL (NOT repeat NOT, EDTLIBL!!!)
You should see something like:
Library Type
QSYS SYS QSYS2 SYS QHLPSYS SYS QUSRSYS SYS QPDA PRD ROB CUR QTEMP USR QGPL USR

Use of a ProductLibrary (PRD in the library list) can be very handy.

One added detail... There are actually *two* ProductLibrary slots. (Hmmm... I haven't checked lately, maybe IBM added another. I doubt it.)

What I do (more or less, not exact):

1. Check if ProductLibrary #1 has a library.
2. Check if ProductLibrary #2 has a library.
3. If #2 slot is in use, save that entry.
4. If #1 slot is in use, move #1 library to slot #2.
5. Put my library in slot #1.
6. Do my processing.
7. Move #2 library to slot #1.
8. Return any saved library to slot #2. Erase the saved entry.

I kind of treat it like a stack where I push my library onto the top and save anything that gets displaced off of the bottom. When I'm done, I restore the stack to the condition it was in when I entered my process.

One implication is that it's possible to push multiple libraries off the bottom. Therefore, you should be prepared to stash and recover multiple libraries.

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.