I have an input file that contains three address lines, PIC X(30) each. I would like to combine into one field. The data in the three individual fields do not fill out the 30 bytes. Is there a way to combine without the ending spaces of each file. e.g., addr1 - 123 main street; addr2 - suite 50. I would like the end result to be 123 main street suite 50. Is this possible. When I coded:
string addr1 delimited by size
' ' delimited by size
addr2 delimited by size
' ' delimited by size
addr3 delimited by size
into
addr-combined.
It joined the three fields, but it left the ending spaces. Is this not possible, or am I doing something wrong. Thanks