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



LEAVE is not valid with simple Do (DO) command groups.
In RPG it is.

A Leave (LEAVE) command without a label will leave the innermost active
DO group.
Specifying a label allows the processing to break out of one or more
enclosing groups.
Wish we had that in RPG so that GOTO is not missed (be me anyway).
Shouldn't be too much to implement in the RPG compiler?
Still, i keep most of the processing code in RPG and avoid as much as
possible doing in CL what i can do in RPG.



________________________________


On Tue, Jul 23, 2013 at 11:09 PM, Scott Schollenberger <
SSchollenberger@xxxxxxxxxxxxxxxxxx> wrote:

LEAVE command

The Leave (LEAVE) command can be used to exit an active DOWHILE, DOUNTIL,
or DOFOR group.
It provides a structured manner to leave an active group without resorting
to the use of the Goto (GOTO) command.
LEAVE is not valid with simple Do (DO) command groups.
A Leave (LEAVE) command without a label will leave the innermost active DO
group.
Specifying a label allows the processing to break out of one or more
enclosing groups.
________________________________


Scott Schollenberger
Vice President, Research & Development

P: 610-239-9988 x305
F: 610-239-9995
E: SSchollenberger@xxxxxxxxxxxxxxxxxx
[http://www.harriscomputer.com/images/signatures/HarrisSchools.jpg
]

[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]<
http://www.harriscomputer.com/>
100-2011 Renaissance Blvd.
King of Prussia, PA
19406
www.harris-schoolsolutions.com<http://www.harris-schoolsolutions.com>

This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged or confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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