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 are the rules of the move verb?
What is the use of intialize verb?
how do you reference the fixed unblock file formats from cobol programs
What is the local-storage section?
Are you comfortable in cobol or jcl?
Write down the divisions of cobol program?
What are the different data types in cobol?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What are 77 levels used for?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Explain the configuration section of a cobol program with examples of syntax.
What is a scope terminator give example?
How do you differentiate between cobol and cobol-ii?
Difference between cobol and cobol-ii?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?