sas totoDepends whether your dates are like a, b or c in the following example . data test; a = 201506; * YYYYMM as a number * b = '01JUN2015'd; * SAS date value with YYYYMMMr. Sasyanto Sas is a Manager-Information Technology at PT Surya Toto Indonesia Tbk.