Mark.

I usually keep my data libraries seperate from my CGI
libraries.  This way the user really can't get to them since
they're not included in an PASS, EXEC, MAP, etc.

Then I use my set of library list subprocedures to Push and
Pop the correct data library(s) to the library list.

So it would look like this in your case:

if (user="demo")
eval Library = 'TESTLIB'
else
eval Library = 'PRODLIB'
endif

#pushlib(Library)

..do processing..

#pop(Library)


Works like a charm.  You can download the source for these
at www.bvstools.com in the source samples section, or you
can create your own method of library list manipulation.

Brad


On Fri, 7 Sep 2001 08:51:47 -0500
 "Mark A. Manske" <mmanske@minter-weisman.com> wrote:
> I have an un-easy feeling - can anyone give me a warm
> fuzzy on this
> question;
>
> Here is the scenario:  In the green screen world we check
> the AS/400 userID,
> if the user is DEMO
> we override the databases to a test library.
>
> In the web world I need to do the same thing - ok
> I put in a command procedure(callp) and a usropn like I
> have before within
> the RPG -
> problem is, while in debug; to feel good about the code,
> I noticed this -
> no files open, no overrides in effect (this was on the
> single not the multi
> thread job)
> Am I looking at this wrong? Am I overly paranoid?  Or is
> there an issue with
> this?
>
> TIA
>
> Mark A. Manske
> Minter-Weisman
> Sr. Project Lead
> http://www.minter-weisman.com
> mailto:mmanske@minter-weisman.com
>
>
>
>
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400)
> mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/web400.
>

Bradley V. Stone
BVS.Tools
www.bvstools.com


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.