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