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



Thanks Michael.  The problem is gone after I changed the service program
to close and open the display file. 

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Michael_Schutte@xxxxxxxxxxxx
Sent: Tuesday, May 09, 2006 9:33 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Assume keyword on display file the is used by service
program

Ok, I gotcha now.  Sounds like something's getting caught up in the
cache.
>From my experiences with modules (not service programs, maybe someone 
>else
could provide the answer for them), in modules, I had to control the
opening and closings of a file (USROPN keyword on FSPECS).   If you have
the USROPN keyword on the display file, make sure that the display file
is being closed when you leave the service program.

If you try to compile a module without explicitly  controlling the
files, the module will compile, however, you will compile with severity
of 10 (well, that also depends on your compile level).
You will receive the following message in the compile listing...

*RNF7534 10      1 Files should be closed explicitly when NOMAIN is
specified
                   the Control specification.

If you go the route of controlling the opening and closing of the
display file... At service program begin...

If not %Open(DISPLAYFILE);
   Open DISPLAYFILE;
EndIf;

When Leaving...

If %Open(DISPLAYFILE);
   CLOSE DISPLAYFILE;
EndIf;


Michael Schutte




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.