Page 1 of 1

how to connect 2 string into one.

PostPosted: Sat Dec 06, 2008 1:53 am
by leon
hi,

can anybody tell me how to connect 2 string in COBOL, thx.

ex:
05 WS-TEXT PIC X(15) VALUE " The total count is: ".
05 ws-count pic 9(5) value 0.

05 WS-result-message PIC x(20) value space.
can i use the idea or you have better idea, thax.

move ws-text TO WS-result-message(1:15)

MOVE WS-count TO WS-result-message(16:)

Re: how to connect 2 string into one.

PostPosted: Sat Dec 06, 2008 2:14 am
by gurzi
STRING WS-TEXT WS-COUNT INTO XPTO DELIMITED BY SIZE

TEST PLEASE

Re: how to connect 2 string into one.

PostPosted: Tue Dec 09, 2008 2:08 am
by leon
thank you very much!