In my job I am multiplying 2 zoned decimal numbers and want to store the result as a Zoned number. The JCL and every thing is working fine but the output is incorrect. If i reading the output as Packed data then the output is correct.
Ex: Num1= 1231.23 and Num2=236.00, then multiplication o/p should be 290570.28. But in my o/p dataset it is showing as
Can you please tell me what is the reason for this and what I need to do?
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
Post the code for the variable definitions and the PROCEDURE DIVISION calculation. If it is working for packed decimal, that implies your variable definitions are not right -- zoned decimal and packed decimal are defined differently in COBOL.