In your log there is a note: "Numeric values have been converted to characters"; It seems as MC041 in diabetes dataset was defined as CHAR type while MC041 in ami was defined as numeric ? Is it? For testing AMI better do: if ami in (. 41001 41011 ... ) then ... ; /* see PG Stats answer , and pay attention: as ami is numeric you cant check for blank but for missing value */
... View more