How to concatenation one or more string?
Answers were Sorted based on User's Feedback
Answer / nagaraj ramamoorthy
using concatenate operator
e.g string1||strting2||'string3'
| Is This Answer Correct ? | 3 Yes | 1 No |
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 |
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 |
in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........
What is Static and Dynamic linking ?
How to recover a deleted source physical file from library?
Differentiate between structured cobol programming and object-oriented cobol programming.
where did you see the information regarding abend codes in jcl?
How can we increase the size of an existing PDS to include more no. of modules.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
how can we fetch 3 records in cobol pgm any coding pls ?
What is the difference between index and subscript?
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,