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
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how to access the file from prodution from changeman tool and to submit a file to production
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What guidelines should be followed to write a structured cobol prgm?
) How do u handle errors in BMS macro
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Explain about different table spaces.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
i need a small 3d program using inline and outline.
What is the difference between next sentence and continue in cobol programing language?
What is the difference between comp and comp-3 usage?
How do we get current date from system with century in COBOL?
What is comp-1 and comp-2?