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



Ok, either I'm having a brain fart or something isn't
working the way it should.  Or it is working how it should,
but it's not what I expected... :)

I have a CGI program that runs.  It dynamically sets the
library list depending on whether it's running in
production or test mode (ie different libraries for prod
and test environments).

In the CGI program I call an RPG program that does the
actual file processing (writing, updating, etc...).  These
programs DO set on LR, and have the files used defined in
F-Specs normally (not with USROPN).  Files are not set to
SHARE(*YES), and there are no overrides prior to calling
the program.

So, I call PGMA, it opens CUSTMSTPF in PRODLIB (since
PRODLIB is in my library list).  Does it's thing, sets on
LR, end exits.

Now, if I set the library list so TESTLIB is in the library
list instead of PRODLIB, I call PGMA again from the CGI
program (same job) and it opens the file in PRODLIB.  If I
view open files for the job, it shows the file open, and in
PRODLIB.  Like it didn't close the data path when the
previous program ended.

This is causing some weird problems, and I'm wondering what
the heck is going on?  Why isn't the file closing, and if
that is working the way it should, how to I make it close
the ODP so the next time it's called it opens the correct
file specified in the library list?

Other items I can think of is CGI program is compiled to
run in QILE AG, and the others are *DFTACTGRP (I only wrote
the CGI portion).

Brad

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.