Skip to main content

Hi, guys!
Living in a country that uses comma as a decimal point (1.000,00), I found a bug in the decimal-point is comma declaration.
After using a mask to accept input:

w-Number   PIC  9(02)V9(02)
w-Number-e      PIC  Z9.99


It displays "0,00" but it ignores the Z, and after moving the mask to the proper variable, it continues to have the default value:

move w-Number-e to w-Number.


#decimalpoint
#comma
#COBOL

Hi, guys!
Living in a country that uses comma as a decimal point (1.000,00), I found a bug in the decimal-point is comma declaration.
After using a mask to accept input:

w-Number   PIC  9(02)V9(02)
w-Number-e      PIC  Z9.99


It displays "0,00" but it ignores the Z, and after moving the mask to the proper variable, it continues to have the default value:

move w-Number-e to w-Number.


#decimalpoint
#comma
#COBOL

I am not sure I understand. If you are using decimal-point is comma then your pic should be Z9,99 instead of Z9.99.

Can you please post the entire code snippet and tell me what the results are that you see?

Is this a native code project or a managed code project?

Thanks.