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