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

Discuss about changing dataset name in proc.

1230


What is the difference between goback, stop run and exit program in cobol?

1578


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1224


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

2253


When is inspect verb is used in cobol?

1249


Can we redefine the field of x(200) to less than 200?

1362


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2427


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1077


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1157


) How do u handle errors in BMS macro

2035


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1333


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1146


What are the access modes of START statement?

1264


How many bytes S(8) comp field occupy and its maximum value?

2136


Mention the guidelines to write a structured cobol program?

1084