How to concatenation one or more string?

Answers were Sorted based on User's Feedback



How to concatenation one or more string?..

Answer / dhasani

STRING verb.

Is This Answer Correct ?    8 Yes 3 No

How to concatenation one or more string?..

Answer / nagaraj ramamoorthy

using concatenate operator

e.g string1||strting2||'string3'

Is This Answer Correct ?    3 Yes 1 No

How to concatenation one or more string?..

Answer / app

Suppose ther are two strings

string1=Anne
string2=Marrie


The command to concanate above strings is

String string1 delimited by size
string2 delimited by size
into string3
end-string.
string3 would contain-Anne Marrie

Is This Answer Correct ?    2 Yes 0 No

How to concatenation one or more string?..

Answer / 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

More COBOL Interview Questions

what is sysncpoint?

1 Answers   IBM,


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


Can the OCCURS clause be at the 01 level?

8 Answers   Oracle,






can you declare redefine in level 01?

8 Answers   Patni,


Differentiate between structured cobol programming and object-oriented cobol programming.

0 Answers  


What is SSRANGE, NOSSRANGE ?

5 Answers  


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

2 Answers   ADP,


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


How to define a array dynamically.....

5 Answers   Fidelity,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

5 Answers   HCL,


Categories