Hi! I have tried to create a dummy-variable where "1" indicates that the event (case_start) has occured, and "0" the opposite. "1" should indicate that the event (Case_start) occured after 01.01.2018, and "0" should indicate that the event (case_start) has occured before 01.01.2018. data tuetravelexpenses_cases; set tuetravelexpenses_cases; if '04OCT2016:23:00:00'<case_start<'31DES2017:23:00:00' then observation_period='0'; run; My problem is that every event gets "0", instead of only the events before 01.01.2018. I have also tried if case_start>31DES2017:23:00:00" then observation_period="0", but i get the same result. Can someone help?
... View more