× 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, I probably misunderstood something about this, but I was under the
impression that running ILE applications as *Caller from a program in DAG
was an invitation to disaster.  I use *Caller for service programs, NOT for
ILE applications.  All apps are compiled to *NEW or a named Activation Group
(QILE).  Did I err in my caution?  My recollection is that *caller ILE
applications started from an OPM program would try to scope ILE resources to
the DAG which cannot be reclaimed. Did I take a wrong turn on that issue?


Eric DeLong
Sally Beauty Company
MIS-Sr. Programmer/Analyst
940-898-7863 or ext. 1863



-----Original Message-----
From: Jade Richtsmeier [mailto:jade.richtsmeier@mcis.cog.mn.us]
Sent: Friday, September 14, 2001 9:27 AM
To: RPG400-L@midrange.com
Subject: Open files problem?


We are going to have the situation of an OPM program calling a series of ILE
programs.  The ILE programs are compiled with an activation group of
*caller, and all is well.  The only problem we have is that there are files
opened in service programs that are not be closed when the OPM program is
exited.

We've come up with three options of handling this:

1.  Have the OPM program execute a shut down routine that would close all
files that have been opened.  The problem with this is, how do you know what
files have been opened, unless you know all of the details of each file that
was opened when a service program was called.

2.  Use a named activation group when calling the ILE programs, and have the
OPM program reclaim the activation group at the end of the process.

3.  Leave the files open.  What issues are we going to have to deal with if
we do this?

Thanks for any and all input!

Jade Richtsmeier, Programmer/Analyst
Minnesota Counties Information Systems
413 SE 7th Avenue
Grand Rapids, MN 55744

218.326.0381 Ext. 21
218.326.3544 Fax
jade.richtsmeier@mcis.cog.mn.us

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.