Hi ALL, I have a proc sql step which looks like below. proc sql; create table test as select compress(key) as key, total_amt , a_cd, b_cd from table1 except select compress(key) as key, total_amt , a_cd, b_cd from table2; quit; I have two tables table1 and table2. I am getting weird result. table1 key total_amt a_cd b_cd 9528553591287 209.20 9707589975114 0.00 table2 key total_amt a_cd b_cd 9528553591287 209.20 9707589975114 0.00 test key total_amt a_cd b_cd 9528553591287 209.20 I believe I should have got 0 records with the above query but I am getting some rows although they have same values in table 1 and 2. The formats/lengths of the columns are different in two tables but I don't believe that is the cause of the issue. table1: total_amt format: 20.2 informat 20.2 numeric length 8 a_cd format: $1 informat $1 b_cd format: $4 informat $4 table2: total_amt format: 21.2 informat 21.2 numeric length 8 a_cd format: $1 informat $1 b_cd format: $10 informat $10 Any idea why ,although the data values are same in both tables, I am getting results with the except operator? Thanks in advance Nick
... View more