How to concatenation one or more string?

Answer Posted / siri

USING STRING KEY WORD TO CONCATENATE ONE OR MORE STRINGS....
FOR EXAMPLE I WANT TO 'RENU-SHIVA'
WORKING-STORAGE SECTION.
01 NAME1 PIC X(10) VALUE 'RENU'
01 NAME2 PIC X(10) VALUE 'SHIVA'
01 NAME3 PIC X(20)
PROCEDURE DIVISION.
STRING NAME1 DELIMITE BY '' '-' DELIMITED BY SIZE NAME2
DELIMITED BY '' INTO NAME3..
DISPLAY NAME3.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 77 levels used for?

661


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


IF I mention stop run in CICS what happens?

1898


What is cobol?

749






What are declaratives and what are their uses in cobol?

714


how to refer the data field?

1812


Can we change the password using ALTER? anyone tried and changed?

1550


What is rmode(24)

682


How are the next sentence and continue different from each other?

766


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


A table has two indexes defined. Which one will be used by the SEARCH?

759


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2725


What is Pic 9v99 Indicates in COBOL?

729