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



I'm guessing (haven't asked contractor-buddy if he's played with this
anymore):  It appears to me that RCLRSC is behaving as it used to, closing
up PAG, files, etc, and all that.

It also appears that executing a function ***within same still-active
*ACTGRP*** (regardless of whether *InLR is *On or *Off) will behave as if
*InLR was NOT *On, wrt open files and mebbe allocation of static/automatic
storage variables and all that.  (Makes sense to me, a little.  *ACTGRP, as
implemented, doesn't always make a lotta sense as it seems
overly-complicated way of doing things, and apparently was implemented this
way to appease C developers without a whole lotta thought about how it would
effect non-C programmers, imo.)  So I'm also guessing that if 2nd pgm was
started in *NEW *ACTGRP, the files would have been closed on return (without
any regard to *InLR).

Explicit close of file would probably take care of yer problem, Brad, as
Hans said.  (Dunno if you wanna leave the 2nd pgm in an active *ACTGRP for
performance (or other) reasons, but explicit close on these specific files
would allow for that.)

jmg/o/o

| -----Original Message-----
| From: rpg400-l-bounces@xxxxxxxxxxxx
| [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Brad Stone
| Sent: Thursday, November 13, 2003 2:50 PM
| To: RPG programming on the AS400 / iSeries
| Subject: Re: Files left open even though they were closed?
|
|
| Just an update.
|
| I was able to recreate it both on a web job and in a green
| screen job.
|
| Calling RCLRSC after calling the 2nd program (the opens the
| files) does in fact close the files.
|
| Now the question is, WHY?  :)



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.