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 |
how can you identify wheather the program is using search or search all in the cobol program?
How do you get the data to code the BMS macro?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
how you read control card into array?
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
how do you reference the variable block file formats from cobol programs
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
What type of Call you would use if you don;t want the control back to the calling program?
If I want to increase the Limit in GDG. What should I do?