65 pts.
 Combining fields in RPG
How can I combine three fields into one in rpg?

Software/Hardware used:
ASKED: October 13, 2008  8:06 PM
UPDATED: October 14, 2008  2:53 PM

Answer Wiki:
Combining 3 char fields Eval FldCombine = Fld1+ Fld2 + Fld3 Combining 3 char fields dropping blanks Eval FldCombine = %trim(Fld1) + %trim(Fld2) + %trim(Fld3) Any of these close to what you need? in /FREE FldCombine = Fld1+ Fld2 + Fld3; FldCombine = %trim(Fld1) + %trim(Fld2) + %trim(Fld3);
Last Wiki Answer Submitted:  October 13, 2008  8:48 pm  by  philpl1jb   44,070 pts.
All Answer Wiki Contributors:  philpl1jb   44,070 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks Philip~!

How about variable length fields with one space in between?

 65 pts.

 

Hi there,

Same process:

Result is a variable field:

result = %trim(var1) + ‘ ‘ + %trim(var2) + ‘ ‘ + %trim(var3);

Best regards,

Gerardo.

 300 pts.

 

Eval FldCombine = %trim(Fld1) + ‘ ‘ + %trim(Fld2) + ‘ ‘ + %trim(Fld3)

 23,625 pts.