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


Please Help Members By Posting Answers For Below Questions

What are the rules of the move verb?

712


What is the use of intialize verb?

758


how do you reference the fixed unblock file formats from cobol programs

719


What is the local-storage section?

691


Are you comfortable in cobol or jcl?

651






Write down the divisions of cobol program?

675


What are the different data types in cobol?

801


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?

1237


What are 77 levels used for?

663


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1785


Explain the configuration section of a cobol program with examples of syntax.

664


What is a scope terminator give example?

661


How do you differentiate between cobol and cobol-ii?

662


Difference between cobol and cobol-ii?

719


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

683