PROC SQL; CREATE TABLE DH_POLICY_PRD AS SELECT t1.ACCT_KEY, t1.POL_KEY, t1.POL_NO, substr (t1.POL_NO, 1,3) as product, PRODUCT_ID, put(datepart(t1.POL_EFF_DT),yymmddn8.) as POL_