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



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 06/14/2018 11:25:22
AM:
My code also seemed to be working fine with RLA and generated always
columns until I did a couple of quick tests to make sure the named
activation group was being cleaned up, which involved switching library
lists and then I seemed to get the intermittent problem.

I noticed when switching environments and inserting records that it
seemed
to skip one identity value ( e.g the highest INT ID I had was 12 and it
would generated 14 instead of 13 as the next number )
I know this makes it sound like I've leaving something open but I'm sure
I
am not. Although there are 2 programs and a service program involved,
only
the service program does database I/O. Both programs run in QILE and end
with *INLR. The Service Program runs in *CALLER and closes all files and
cursors ( of which there are very few ) and the Activation Group is
being
reclaimed so I can't see what resource might be left around.


*INLR does nothing in a service program. So, unless there is an
explicit CLOSE of the file in your service program then the file is being
left open by the service program. Even reclaiming the activation group
does not close the file as far as the service program is concerned -- at
least, that is a problem I have encountered on a number of occasions. I
even reported an error I was seeing to IBM and they came back and said
"functioning as designed." They said the reclaim activation group was
"destroying" the control blocks associated with an open file but that the
RPG service program still thought the file was open and treated it as
such.


Sincerely,

Dave Clark

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.