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

Name the sections present in data division.

909


) what is the difference between AID and HANDLE AID?

1889


What is the difference between external and global variables in COBOL?

1046


What is an in line perform? When would you use it? Anything else you wish to say about it.

836


What is the LINKAGE SECTION used in COBOL?

1206


Explain the configuration section of a cobol program with examples of syntax.

867


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2879


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1079


Which division and paragraphs are mandatory for a COBOL program?

923


How can you get the ksds file records into your cobol program?

847


Mention the guidelines to write a structured cobol program?

832


What is comp-1 and comp-2?

943


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

864


Are you comfortable in cobol or jcl?

807


What is the difference between Call and a Link?

893