Thanks a lot.
when i used this:
IF PSITE in ('C340', 'C341', 'C342', 'C343', 'C348', 'C349');
i got lots of error in my log
DATA TCR.LUNG; 20 SET TCR.tx_ltd_use_9518_feb21; 21 IF PSITE = IN ('C340', 'C341', 'C342', 'C343', 'C348', 'C349'); 22 RUN;
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column). 21:4 NOTE: Invalid numeric data, PSite='C447' , at line 21 column 4.
is it because i did not convert to numeric variable?
for your second suggestion,
i was able to create the format but when i tried the second step, i got this:
DATA TCR.LUNG; 48 SET TCR.tx_ltd_use_9518_feb21; 49 IF put(PSITE,$mygroups.) = 'Lung Cancer'; ---------- 48 ERROR 48-59: The format $MYGROUPS was not found or could not be loaded.
50 RUN;
i dont know of any tables with such groupings identified or how to get the tables.
... View more