I want to declare a field with data type Double in my COBOL
program. how shall i do that ?
Answer Posted / prasad
With the above answer we can achive decimal numeric
declaration but we will not achive double format
declaration.
To Declare double data type in COBOL we have to decalre
field with COMP-3.
Examples:
WS-NUM PIC 9(4) COMP-3. for non decimal numbers
WS-NUM1 PIC 9(4) v 99 COMP-3. For decimal values.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can you please let me know the centre name of INS certification in Kolkata.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
HOw can I get the negative sign while deduct high value from low value
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
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 different data types in cobol?
Name the sections present in data division.
) How do u handle errors in BMS macro
What is link edit in cobol?
Explain about different table spaces.
explain sorting techniques in cobol program?
What is the compute verb? How is it used?
In which area will you utilize 88 level items in cobol?
how do you reference the printer file formats from cobol programs
What is the local-storage section?