× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Vern Hamberg wrote:

You can have 2 PRDLIBs in your library list - the only way to get the 2nd one in is with the QLICHGLL API - I've used this by saving the current LIBL, all parts, from system to product to current to user - then use the API - then set things back again with the API.

When I use QLICHGLL for a second PRDLIB(), I do these steps:

1. Save the current PRDLIB() #2.
2. Change PRDLIB() #2 to hold PRDLIB() #1.
3. Change PRDLIB() #1 to hold the new product library.
4. Run the process that needs the altered PRDLIB().

When my procedure ends:

1. Change PRDLIB() #1 to hold PRDLIB() #2 (i.e., restore it).
2. Change PRDLIB() #2 to hold the saved value (i.e., restore it.)
3. Exit.

Kind of a push/pop stack where I save what falls off the bottom when I push a value onto the top and discard what pops off the top when I push the saved value back onto the bottom.

Of course, if nothing was in PRDLIB() #2 at the start, it gets set back to nothing at the end. The proc lets me push/pop a number of libraries in sequence, always having the two most recent on the 'stack'.

Too bad David was trying to solve a different problem, eh?

Tom Liotta

David Gibbs wrote:
David Gibbs wrote:
I'm submitting a command (to batch) that has the PRDLIB attribute set
... but I need to insert a library into the library list IN FRONT of
the PRDLIB so this program will run correctly.

Just a little more background on this problem ... I'm submitting a custom compile command from WDSC. I don't seem to have the ability to add a library to the system library list when a compile is submitted.

I didn't post this to the WDSC list, as I'm fairly sure it's strictly a smbjob and prdlib issue.



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.