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 kind of error is trapped by on size error option?
Have you used comp and comp-3 in your project? And how?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
For rewrite, why is it mandatory that file needs to be opened?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is amode(24), amode(31), rmode(24) and rmode(any)?
Explain what you understand by passing by value.
How many bytes S(8) comp field occupy and its maximum value?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are literals?
In COBOL, what is the different between index and subscript?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is difference between static and dynamic call in cobol?
Difference between array and sub-script ?