sas:compress删不掉的空格
原始的数据时TEXT,部分空格是compress删不掉的,需要转为16进制,再识别删除
LIBNAME S '.';
DATA S.TEMP1;
SET S.TEMP;
IF COMPRESS(TEXT)='' THEN TEXT1='空';ELSE TEXT1='非空';
TEXT2=PUT(COMPRESS(TEXT),HEX.);
TEXT3=TEXT;
IF TEXT2='' THEN TEXT2='';
ELSE IF COMPRESS(TEXT2)='09090909' THEN TEXT3='';
RUN;
Stay hungry, stay foolish