You could try date functions as below data _null_; dob='19may2013'd; day=day(dob); month=month(dob); year=year(dob); put dob day month year; run;
... View more
how about the last logic, If the Breakdate falls on Sunday, automatically increment to Monday. data _null_; break_date='19may2013'd; if weekday(break_date)=1 then break_date=break_date+1; put break_date date9.; run;
... View more