× 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.



Hi Charles,

We call a CL program that accepts the client ID as a parameter, does a
CHGLIBL LIBL(QGPL QTEMP), then ADDLIBLE's the appropriate libraries. I
have to admit that we're actually not checking if the program is
successful, but the dumps seem to indicate that it was. In the job
log, I see the CHGLIBL happen:
CPC2101 Completion 00 05/13/14 16:46:42.346034
Message . . . . : Library list changed.

followed by adding the correct database library:
CPC2196 Completion 00 05/13/14 16:46:42.346457
Message . . . . : Library KWDB104 added to library list.

followed by the insert (I don't have the milliseconds on that, but it
necessarily happened after the above because those messages are from a
spooled file produced by the insert trigger), which shows the library
list as follows:
Job Library List
ASP
Library Type Device Text
QSYS SYS System Library
QSYS2 SYS System Library for CPI's
QUSRSYS SYS System Library for Users
XL_WEBSPT CUR
KWDB104 USR
KWPGM USR
KWDOC USR
KWSYS USR
KWIK USR
QGPL USR General Purpose Library
QTEMP USR

Despite that, the insert went to library KWDB108. I considered the
possibility that it's looking at the library list at the time the
program is called rather than when we actually run the insert, but it
doesn't seem to me like that would be the case since this works 90-95%
of the time.

Thanks,

Jacob Smallwood

On Wed, May 14, 2014 at 10:53 AM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:
How are you changing the library list? Are you checking for errors?

Sounds like that's not actually occurring..

Charles


On Tue, May 13, 2014 at 5:35 PM, Jacob Smallwood
<jacob.smallwood91@xxxxxxxxx> wrote:

On each
request we grab the client ID, set the library list appropriately, and
then go about our business.

For example, we'll have a request come in from client ID 104 which
should go to KWDB104/KWHNOTE, but it ends up going to KWDB108/KWHNOTE.
I attached a trigger to this table that does a DSPJOB OUTPUT(*PRINT)
whenever this happens, so I know that KWDB108 wasn't in the library
list at the time (I can provide that listing if anyone thinks it would
be useful).

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.