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
Name the sections present in data division.
what is the difference between COBOL2 AND COBOL390?
Which division and paragraphs are mandatory for a COBOL program?
What is a report item?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the difference between perform … with test after and perform … with test before?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the different rules to perform a Search?
How to print 10 to 1 if the input have only 10 digit number?
Explain the configuration section of a cobol program with examples of syntax.
How do you reference the fixed block file formats from cobol programs
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Write down the divisions of cobol program?
What is the difference between goback, stop run and exit program in cobol?