×

Good News Everybody!

The new search engine is LIVE!

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




Really, most of what has been mentioned so far gives RPG little or no
advantage over COBOL or PL/I, because most of what has been mentioned so far
is stuff that existed in those languages long before it existed in PL/I.

I am doing a little COBOL these days and there are a handful of small things
that drive me nuts that I take for granted in RPG.

For example, I have to first clear a string variable before I apply a
literal value to it in the event the last string was longer than the one I
am putting in. I would love to hear I am doing something wrong and there is
an easier way :-)

MOVE SPACES TO var1.
STRING var2 DELIMITED BY SIZE,
"somestring" DELIMITED BY SIZE
INTO var1.
CALL PROCEDURE "RPG_CODE" USING
var1 RETURNING isError.

That makes for a lot of extra coding in my COBOL program that I don't have
in RPG.

I would love it if I could instead do the following:

CALL PROCEDURE "RPG_CODE" USING trimr(var2) + var1 RETURNING isError.

Aaron Bartell
http://mowyourlawn.com

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.