Hi, I'm using SAS on demand and I'm struggling to change a numeric to a SAS date. My numeric variable is SurgStart which as format best12. and informat best32. My code is: data ab1; set ab; date_var=input(put(SurgStart, best12.),yyyymmdd.); format date_var date9.; run; This doesn't work. What I want to happen is for SurgStart e.g.20140410 to become the date 2014-04-10 so I can then do time series analysis. Please help! Why is this
... View more