Without using move verb how to move one variable to another.
Answer Posted / bala
We can do this in multiple ways.
1) Using UNSTRING
2) COMPUTE
3) Also, REFERENCE MODIFICATION i.e, if XYZ is a variable with value 'all interview' then
A = XYZ(1:3) moves the first 3 characters of XYZ variable to A.
i.e, A value will be 'all'
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are the various section in data division and briefly explain them.
What are declaratives and what are their uses in cobol?
How you can read the file from bottom?
Why occurs cannot be used in 01 level in COBOL?
What is Pic 9v99 Indicates in COBOL?
Explain about different table spaces.
What is the difference between comp and comp-3?
What are literals?
Can a Search can be done on a table with or without Index?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Difference between array and sub-script ?
How do you reference the following file formats from cobol programs?
What is the utilization of copybook in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?