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 |
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is EIBCALEN? Why it is used?
how to transfer the file from pc to mainframe??
IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.
I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest
Describe the cobol database components?
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
What is level 66 used for ?
COMP-3 field occupy ?
How do you reference the fixed block file formats from cobol programs
Write a program to explain size error.
What is the figurative constant in cobol?