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

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2415


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1188


Give some examples of command terminators?

1197


explain sorting techniques in cobol program?

1147


what is difference between cobol and cobol/400

22737


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

1324


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5318


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17798


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

1181


In which area will you utilize 88 level items in cobol?

1103


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2396


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?

2535


What is difference between static and dynamic call in cobol?

1303


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

1177


What are the different rules to perform a Search?

1050