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


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


What are the various section in data division and briefly explain them.

688


What are declaratives and what are their uses in cobol?

702


How you can read the file from bottom?

654


Why occurs cannot be used in 01 level in COBOL?

708






What is Pic 9v99 Indicates in COBOL?

716


Explain about different table spaces.

642


What is the difference between comp and comp-3?

692


What are literals?

622


Can a Search can be done on a table with or without Index?

798


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1948


Difference between array and sub-script ?

1157


How do you reference the following file formats from cobol programs?

691


What is the utilization of copybook in cobol?

650


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

697