01 var1 pic s9(9)v99.
01 var2 pic x(30).
procedure division.
move 12345.99 to var1.
move12345.99 to var2.
display var1.
display var2.
what is the output?
Answer Posted / kingshuk
var1:0000123459I
If we move 12345.99 to var2 it will give a compilation error.
It should be move '12345.99' to var2.Then
var2:12345.99
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
what is the use of outrecord?
What is difference between static and dynamic call in cobol?
What is the usage of comp fields in cobol?
Are you comfortable in cobol or jcl?
What are the different rules for performing sort operation?
Have you used comp and comp-3 in your project? And how?
What is amode(31)
Explain about different table spaces.
how to access the file from prodution from changeman tool and to submit a file to production
I have a File that has duplicate records. I need only those records that occur more than thrice.?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Describe the cobol database components?
What is the difference between comp and comp-3 usage?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the Purpose of Pointer in the string?