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


Please Help Members By Posting Answers For Below Questions

Can you please let me know the centre name of INS certification in Kolkata.

1947


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1071


HOw can I get the negative sign while deduct high value from low value

2011


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.

6098


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?

1416


What are different data types in cobol?

916


Name the sections present in data division.

911


) How do u handle errors in BMS macro

1709


What is link edit in cobol?

947


Explain about different table spaces.

861


explain sorting techniques in cobol program?

898


What is the compute verb? How is it used?

854


In which area will you utilize 88 level items in cobol?

897


how do you reference the printer file formats from cobol programs

905


What is the local-storage section?

891