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

i need a small 3d program using inline and outline.

1651


What are the access modes of START statement?

728


Name the sections present in data division.

707


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1415


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2110






) How do u handle errors in BMS macro?

1435


What is difference between static and dynamic call in cobol?

793


how can i see junk values in dclgen or in hostvariable of comp ?

2554


How do define dynamic array in cobol.

682


Write a program that uses move corresponding.

686


What is rmode(any) ?

692


What is the difference between comp and comp-3 usage?

683


How many sections are there in data division in COBOL?

690


Difference between array and sub-script ?

1171


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1884