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
Which Search verb is equivalent to PERFORM…VARYING?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Which is not true about evaluate statement
How do we get current date from system with century in COBOL?
What is the difference between next sentence and continue in cobol programing language?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the Purpose of Pointer in the string?
What is a report item?
What are the various section in data division and briefly explain them.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Write a program to enter and display the names of students in a class using the occurs clause.
how do you define single dimensional array and multidimensional array in your cobol?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is rmode(any) ?