I think you need to use QCMDEXC - build up the command string from the list of libraries, then call QCMDEXC to run it.

HTH

Vern

At 02:36 PM 7/21/2003 -0400, you wrote:




Hello all,

We have some jobs in our production environment that
change the system portion of the thread's library list.

We are trying to manipulate the system portion of the thread's library list
via the  RTVJOBA command

RTVJOBA SYSLIBL(&SYSLIBL) ...

Where the &SYSLIBL is a character variable 165 bytes long (a maximum of 15
libraries)

and the CHGSYSLIBL command

CHGSYSLIBL &LibName *ADD/*REMOVE option.


Pretty straight forward



However we have not been able to resolve the following problem:



Say our System portion of the thread's library list is: 1. PRDSYS, 2. QSYS, 3. LIBABC, 4. LIBXYZ


Our utility program runs and saves this list.



Later, .., a program runs and decides to remove LIBABC


CHGSYSLIBL LIB( LIBABC ) OPTION( *REMOVE )

The new System portion of the thread's library list is:
1. PRDSYS,  2. QSYS,  3. LIBXYZ

Later, ..., Our utility program will try to restore the
original System portion of the thread's library list

CHGSYSLIBL LIB ( LIBABC ) OPTION( *ADD )

The new System portion of the thread's library list is

1. LIBABC, 2. PRDSYS, 3. QSYS, 4. LIBXYZ

However the Library SEQUENCE is different


Has anybody been able to resolve this problem ?


I have searched the system library list API (s)
and have not found anything yet ...

Any help will be greatly appreciated.

Regards


Jorge Moreno Systems Analyst Military Car Sales Woodbury, New York



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.