hello all, I am trying to convert some dates to quarters and week days as well as calculating length of stay with them using proc sql. I have used the code before and it's worked but today it's been giving me the following notes: below is a sample of the code that I've been using and my formats: proc sql; create table NEW as select a.*, case when VAR='88' then 1 else 0 end as CAT, put(qtr(VAR1), qr.) as a_qtr, put(qtr(VAR2), qr.) as d_qtr, put(weekday(VAR1), wk.) as a_day, intck('DAY',VAR2,VAR1) as c_los, from OLD a ; quit; value wk 1='SUN' 2='MON' 3='TUE' 4='WED' 5='THU' 6='FRI' 7='SAT' value qr 1='Jan-Mar' 2='Apr-Jun' 3='Jul-Sep' 4='Oct-Dec' What am I doing wrong??
... View more