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



Hi, Mark:

I was only trying to clarify Vern's general statements about those languages and their use of the semicolon.

IBM has apparently chosen to use the semicolon as a statement terminator for free-form RPG IV, much as it is used in PL/I. I suspect that this choice was dictated to some extent by the evolution of the RPG IV compiler from the older "fixed format" line-at-a-time model where "ELSE" and "END-IF" were implemented as language "statements" (on separate C-spec lines), rather than just being treated as keywords within some larger "statement" syntax, as in most of those other modern languages mentioned previously.

I may not always agree 100% with every little choice that IBM has made along t he way, but overall, I take my hat off to Barbara Morris and the team at IBM ToroLabs for evolving the RPG IV language into a more modern form, while preserving the "backward compatibility" we expect on this platform (OS/400 -> IBM i) to allow continuity for maintaining older legacy or heritage applications going forward, while also allowing new development projects to more easily take advantage of some of the latest techniques.

HTH,

Mark S. Waterbury

> On 7/20/2016 12:04 PM, Mark Murphy/STAR BASE Consulting Inc. wrote:
But look, RPG just simplified the PL/I version from

IF (A < B) THEN DO;
Z = A;
END;
ELSE DO;
Z = B;
END;

to

IF (A < B);
Z = A;
ELSE;
Z = B;
ENDIF;


Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


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.