Hi Could anyone please tell me how to correct this code? the problem seems to be in the "compress" part of the sql proc sql; connect to oracle (user=xxx path='xxx' orapw="xxx"); create table Want as select id, place, date from connection to oracle ( select a.id, a.place, a.date from T1 a inner join Tq b on a.rec=b.rec and a.place=b.place where ( b.place='Tx' and ( substr(compress(b.diagnosis,,'p'),1,3) = 'NYC' ) ) ); quit; It seems sql/oracle dose not accept the compress theres, any ideas on how to solve this please? Best regards
... View more