Hi,
I have a requirement where I need to acommodate a number which is more 18 digits (20 actually including 6 decimal places) in to a 18 digit field. The version of COBOL we have, supports only 18 digits.
This field is part of an 80 byte record. I don't really want to try the most obvious option of dividing the number and then storing the divident & remainder in separate fields and then later multiplying & adding to get the actual number, due to the 80 byte restriction (out of which I can only use 40 due to the 1st 40 being occupied by the key).
Please let me know if you can think of a better non-complicated solution.
Thanks !
I have a requirement where I need to acommodate a number which is more 18 digits (20 actually including 6 decimal places) in to a 18 digit field. The version of COBOL we have, supports only 18 digits.
This field is part of an 80 byte record. I don't really want to try the most obvious option of dividing the number and then storing the divident & remainder in separate fields and then later multiplying & adding to get the actual number, due to the 80 byte restriction (out of which I can only use 40 due to the 1st 40 being occupied by the key).
Please let me know if you can think of a better non-complicated solution.
Thanks !