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...

There is a variable with value 19446. Requirement is to
convert it to 194.46. I tried it by doing divide by 100 and
my receiving field data type is 9(03)v99. But the output is
194. I am not getting the decimal value. Could anyone pls
let me know how to get this done?

Answer Posted / kiro

When COBOL does a divide it uses the format of the item
which in this case is integer only that is why the
fractional part is missing. You need to move the value
19446 to a 9(5)v99 item first and then do the divide using
the 9(5)v99 item.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used comp and comp-3 in your project? And how?

2459


Describe the cobol database components?

1159


What the difference is between continue and next sentence?

1137


What rules are followed by the search verb.

1090


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

2193


What is length is cobol?

1082


How are the next sentence and continue different from each other?

1274


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

1133


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1513


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

1068


State the various causes of s0c1, s0c5 and s0c7.

1058


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1130


What is a scope terminator give example?

1088


Define static linking and dynamic linking.

1164


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

2452