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

Difference between cobol and cobol-ii?

1345


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2189


Are you comfortable in cobol or jcl?

1093


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3319


Mention the guidelines to write a structured cobol program?

1143


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1175


What are the different rules for performing sort operation?

1281


example for sub strings ? and refernce modifications whit output pls

2370


Which is not true about evaluate statement

2515


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

1431


how do you reference the esds vsam file formats from cobol programs

1273


Can we change the password using ALTER? anyone tried and changed?

2081


What is amode(31)

1223


What rules are followed by the search verb.

1199


What is a report item?

1195