ISeries article; Article ID 1538
6 Commands to Simplify Library Lists
Michael
_____
From: rpg400-l-bounces@xxxxxxxxxxxx [
mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of rpg400-l@xxxxxxxxxxxxxxxx
Sent: Friday, May 25, 2007 1:56 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Alternative to ADDLIBLE using QCMDEXC
Hello,
Write a non-simple subprocedure that retrieves, and then inserts the
new library where you want it, and call it ADDLIBLE.
I took a completely different tack on this when I approached it in my
shop. I have a procedure that saves the existing library list. Then I
have another procedure that sets a completely new library list. Then a
3rd procedure that restores the old one.
That way, my program saves and changes the library list when it starts.
Operates just fine with it's custom library list. Then restores back
to whatever the old one was just before it ends.
I was thinking of enhancing this approach to use a "stack" of previous
library lists so that I can nest programs, all of which change their
library list.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
------------------------------------------------------------------------------
This message contains information from Certegy, Inc which may be confidential
and privileged. If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that such
actions are prohibited. If you have received this transmission in error,
please notify by e:mail postmaster@xxxxxxxxxxxx
==============================================================================
As an Amazon Associate we earn from qualifying purchases.