I have a numeric value var1 9(7) = 0334454
and another alphanumeric value var2 x(7) = 334454. I need to compare var1 = var2. Though both the values are same, the condn if var1 == var2 fails. To make it work, i moved the alphanumeric var2 to a temp numeric variable var3 9(7) (MOVE var2 TO var3). The value is getting moved as 3344540. So, still 0334454 is not equal to 3344540.
Is there a solution to remove the leading zeros in var1 ? OR Is there a solution to right justify the value in the temp variable var3 ? Please help....