|
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.
As an Amazon Associate we earn from qualifying purchases.
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.