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


  • Subject: Re: If %Open() vs CLOSE(E)
  • From: "M. Lazarus" <mlazarus@xxxxxxxx>
  • Date: Wed, 17 Jan 2001 20:49:18 -0500

Barbara,

At 1/16/01 01:59 PM -0500, you wrote:

  Then why does it support the (E) extender (it does, right?)?  In what 
case(s) would an error be generated?

>Mark, it's not an error in RPG to close a file that's already closed.

  I didn't know that!


>Why are you doing it in this order?  How is the last CLOSE going to be
>done?  Why not do it this way:
>  DO    1000
>  OVRDBF FILE() MBR()
>  OPEN
>
>  CLOSE( E )
>  DLTOVR
>  ENDDO
>
>Barbara Morris

  I'm doing this in case the file is open and/or has a previous override 
(there is code for the DLTOVR in the program) from an earlier run that may 
have failed (if it was run interactively). A final CLOSE after the loop 
takes care of the last open.

  -mark

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.