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
Discuss about changing dataset name in proc.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How many bytes S(8) comp field occupy and its maximum value?
What are the different rules for performing sort operation?
How to know whether the module is dynamical or statistical?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
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?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the problem of ordered sequential files access?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is difference between static and dynamic call in cobol?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?