I have a char date that is formatted mm/dd/yyyy, I need to keep the date in a char format and change it to be a mm/dd/yy. Any assistance is appreciated. Thanks
data have;
do date=today()-7 to today();
char_date=put(date,mmddyy10.);
output;
end;
drop date;
run;
data want;
set have;
substr(char_date,7,2)=' ';
char_date=compress(char_date);
run;