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 anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Give some examples of command terminators?
explain sorting techniques in cobol program?
what is difference between cobol and cobol/400
How do we get current date from system with century in COBOL?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
In which area will you utilize 88 level items in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is difference between static and dynamic call in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What are the different rules to perform a Search?