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



Hi Jerry

I think these codes come from existing RPG error status codes, whether program or file. Codes from 0-99 can't be entered into the ON-ERROR opcode. Anything else is pretty much fair game, sensible or not!

Vern

On 3/22/2012 7:08 AM, Jerry C. Adams wrote:
Rory,

Thanks. That makes perfect sense. Though it begs the question: Why is
there even a MONITOR code for implicit opens? .-)

Jerry C. Adams
IBM i Programmer/Analyst
It just as easily could have gone the other way. - Don Zimmer explaining his
teams 4-4 road record
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Rory Hewitt
Sent: Tuesday, March 20, 2012 2:30 PM
To: RPG programming on the IBM i / System i
Subject: Re: Open Explicit -vs- Open Implicit

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.



--
Rory Hewitt

http://www.linkedin.com/in/roryhewitt
--
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 ...

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.