Hello,
I have several variables that are in mmddyy8. form in a data set for which I don't care about the years but rather the day of the year. I've converted them to julian day format using:
format datevariable julday8.;
this works, but a following if/then statement like:
if datevariable < 135 then dummy = 1;
doesn't work for some reason.
Of course, the juldate function works in this situation, as in:
if juldate(datevariable) < x then dummy = 1;
but the juldate is much different than the julday. Does anybody know if there is a function for julday (day of year) rather than just for juldate? Also, can anybody see me why my if then statement doesn't work?