Reeza, I ggot this error message and 137 DATA SUBMTWO.Clinicdata29_1; 138 IF CL_PATIENTID='50055' then flag1=1; 139 if visdate="11/27/2017" flag2=1; ----- 22 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=. Then I di d this DATA SUBMTWO.Clinicdata29_1; IF CL_PATIENTID='50055' then flag1 = "1"; if visdate="11/27/2017" then flag2 = "1"; RUN; 149 DATA SUBMTWO.Clinicdata29_1; 150 IF CL_PATIENTID='50055' then flag1 = "1"; 151 if visdate="11/27/2017" then flag2 = "1"; 152 RUN; NOTE: Variable CL_PATIENTID is uninitialized. NOTE: Variable visdate is uninitialized. NOTE: The data set SUBMTWO.CLINICDATA29_1 has 1 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.11 seconds cpu time 0.06 seconds CL_Patientid can be repeated, because same patient may have come to the clinic multiple times in a year. That is why I used visdate.
... View more