/* SAS datetime 型の列を WHERE 句の条件に含める場合 */ libname LL11010 SASIOLA port=10010 host=pc1001 tag="/hps" proc sql; select count(*) from LL10010.T_SALE where date_sale >= '01APR2016:00:00:00'dt and date_sale < '10APR2016:00:00:00'dt quit;