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 YYYYMMTempat tissue stenliss steel - tempat tissue stenliss model toto - [SAS-70724