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
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
how do you reference the fixed unblock file formats from cobol programs
Describe the cobol database components?
What is rmode(any) ?
What is rmode(24)
Which division and paragraphs are mandatory for a COBOL program?
how to convert the recors form vsam file to db2 table tru file aid
What is the Purpose of Pointer in the string?
What is a scope terminator give example?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
i need a small 3d program using inline and outline.
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?