Jerry,

It's whether you use the OPEN op-code (explicit open) or whether the
program opens the file automatically (implicit open). By coding the OPEN
statement you *are* explicitly opening the file.

So basically, there's no point in doing a MONITOR for 1216, since an
implicit file open is performed when the program is initialized, before any
user code gets executed.

Rory

On Tue, Mar 20, 2012 at 12:05 PM, Jerry C. Adams <midrange@xxxxxxxx> wrote:

I usually open files manually in RPG IV, and my habit is to wrap the OPEN
in
a MONITOR group (though, naturally, I never expect an error) and test
On-Error for 1216 and 1217; Implicit Open Failed and Explicit Open Failed,
respectively.



I know the different between implicit and explicit, but what is the
difference in RPG? Does it have to do with whether or not the EXTFILE( )
keyword is used on the File statement? Just got curious and couldn't find
it in the manual.



Jerry C. Adams

IBM i Programmer/Analyst

Eric Snow will be 0 for 10 if that pop fly comes down. - Jerry Coleman, San
Diego Padres announcer

--

A&K Wholesale

Murfreesboro, TN

615-867-5070



--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
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:
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.