Try this: %let start_of_month=01Jun2013; Data test; Format date date9.; date="&start_of_month."d put date; run; I believe that you didn't enclose the macro reference variable in either single or double quotes so you can define it as a date variable.
... View more