×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




The reason that it was supported was that it was before the inclusion on the
leave statement.

Tom

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Barbara Morris
Sent: Thursday, June 03, 2010 4:05 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Something Wrong with the following Code ?

Dennis Lovelady wrote:
That is the way I understood it for years! Something must have changed
recently. (By "recently," I mean within the last twenty or so.) The code
compiles (to my similar surprise) on V5R3.


I thought GOTO from a subroutine to detail calcs had always been
supported for all RPG versions, but I just tried the older compilers and
I found out that it's not supported for RPG II (RPG36). It is supported
for RPG IV and RPG III (both RPG38 and RPG). I have no idea why anyone
thought it was a good idea to support branching like that.

But even RPG36 supports branching into a structured group like an IF or
a DO. Somehow that seems even worse than branching from a subroutine
into detail calc.

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