Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the difference between PIC 9.99 and 9v99 in COBOL?

1333


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1240


how to access the file from prodution from changeman tool and to submit a file to production

7549


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.

1435


What guidelines should be followed to write a structured cobol prgm?

1148


) How do u handle errors in BMS macro

2051


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1152


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9104


Explain about different table spaces.

1104


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

3164


i need a small 3d program using inline and outline.

2211


What is the difference between next sentence and continue in cobol programing language?

1221


What is the difference between comp and comp-3 usage?

1201


How do we get current date from system with century in COBOL?

1379


What is comp-1 and comp-2?

1230