Hi,
I am having a requirement such as below:-
I have an address field and a Pin code which i need to concatenate and put together after removing all the trailing spaces.
01 Address Char(140)
01 Pin Code PIC 9(8)
Address :- 123 WESTFIELD FORTMINOR BROOKLYN
Pin Code :- 12345
The resultant should look like 123 WESTFIELD FORTMINOR BROOKLYN,12345
I have tried out using DELIMITED BY SPACES but couldnt remove the extra spaces and it will delimit by the first space that it encounters.In PL/1 we can use TRIM and later a SUBSTR which will resolve the issue. Can anyone give any possible solutions in cobol that i could work on see if its fine. Thanks.