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



Yes - Charles is correct - FREE is not supported in RPG IV.

The reason for omitting it was that it didn't really work properly anyway. In many programs where it was used it was to all intents and purposes a no-op. It was not very practical to try to simulate something that was only working spasmodically.

Please don't ask me for all the gory details because it was too long ago (and I have slept many, many times since then) but let's just say there's a reason for the use of RCLRSC in all those old CL programs!


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Oct 6, 2017, at 3:50 PM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:

There's at least one op-code in RPGIII

FREE (Deactivate a Program)
The FREE operation removes a program from the list of activated programs,
frees
static storage, and ensures program initialization (first cycle processing)
the next
time the program is called. It does not close files or unlock data areas.

That doesn't have an RPG IV version...thus CVTRPGSRC fails...

That's the only one I remember off the top of my head...

Charles


On Fri, Oct 6, 2017 at 12:43 PM, Dan <dan27649@xxxxxxxxx> wrote:

On Fri, Oct 6, 2017 at 2:29 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

Unless you happen to be using one of the few op-codes that don't convert,
there's little excuse not to convert. And if you do use one of those
non-converting op-codes...you're probably using it wrong anyway ;)


I was pretty certain that any valid RPG-III code would always convert to
compilable RPG-IV code using CVTRPGSRC. But, it's been so long since I've
had to deal with that, I'm not sure. I know that /free calcs obsoleted
some of the obscure opcodes, but a plain vanilla conversion using CVTRPGSRC
should always convert to compilable code.

- Dan
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/wdsci-l.

--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/wdsci-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.