08-19-2014 06:23 PM
Hello friends - this could be dumb question but can you please tell me how we can use dataset which look like this...
THESE DATASETS WILL KEEP CHANGIN DATE DATE SO TOMORROW WE WILL HAVE
so i want to use like this;
Please help - thanks!
08-19-2014 08:32 PM
I suggest you stick with the yyyymmdd style as your datasets will then naturally sort in date order either in SAS or Windows Explorer.
Also if you wish to use this on many datasets consider defining as a macro variable. If it is yesterday you want then try this:
%let Yesterday = %sysfunc(intnx(DAY,%sysfunc(today()), -1), yymmddn8.);
Need further help from the community? Please ask a new question.