HAVE: /* in yyyy-mm-dd format */ /* date1 is a macro variable within the program */ /* current value of date1 */ date1 = 2017-04-20 NEED: date1 = '2017-04-20' ATTEMPT: /* Tried to put double quotes around it then replace it with single quotes, but this didn't work. */ data _null_; set date1; date1= quote(date1); %put &date1 date1= %sysfunc (translate (&date1,%str(%"),%str(%'))); run; Can someone tell me the place where I'm going wrong?
... View more