Th I/P file has Lrecl of 433 (FB) and so as the O/P.
the fields which i want to sum up is of length 14. The corresponding Cobol declaration is "S9(10)V9(4)".
My field A,B,C has the following values:
My O/P is something like this: 2091204- (Even though the computed value is correct, it is not displayed as 0000000209120M).
Pls let me know whats wrong and pls try to suggest a solution in ICETool rather than in ice man or in other ... (Because this particular case is one of the condition which needs to be implemented in a single control card... )
I have to multiply a big number ( 9(10)V9(4) with another 9(10)V9(4) ) so i ll get a number larger than the 10 digits. If I mention the length as 10, will this not truncate the result. How do i make sure that there is no overflow/truncation in the result.Any specific method to identify.Pls clarify me on this.
To avoid overflow, just use a LENGTH=n value that will allow for the largest result possible. The number of digits can be up to 31. n can be up to 44 (to allow for separators, etc). So, for example, you could use