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



Jerry Adams wrote:
FREE was usually (always?) used with a called program, especially one
that might be invoked multiple times. The idea, I think, was to erase
the program from memory, close files, etc. Setting on *inLR and issuing
a RETURN pretty much does the same thing. At least, that's the way I
terminate a program.

It doesn't close files. Only frees up the program activation and
memory. This is one reason it was not used a lot. Typically most RPG
programs open files and to properly shutdown a subprogram (closing the
files) it was better to pass a parameter telling it to seton LR instead.

Free was fine for a RPG subprogram that had no files and used RT or
retrn without LR. CL programs don't need to be freed.

It should not cause any harm to remove the free opcodes from the ILE
version. The subprogram being freed might be a good candidate for being
converted to a ILE procedure.

Keith



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.