Dear SAS Users,
My question maybe basic, but I dared to ask you.
Are there a certain rules of using ":" in the SAS code? I understand well how : helps to explain "all columns that start with..." like in this example when calculating sum:
data quiz_summary;
set pg2.class_quiz;
Name = upcase(Name);
Mean3=mean(of Q:);
run;
However, there are more instances where I saw : , but I am not sure what does it mean there. Please, see this example:
data regions;
input id c :$2. x;
cards;
1 N2 50
2 S1 20
3 N1 100
4 S2 70
5 N1 60
;
data south;
set regions;
if c=:'S';
run;
If you know a document or a book chapter that explains all possible uses of : in SAS, please let me know. I would highly appreciate that!
Marina
Marina Espinasse,
statistician at the University hospital in Northern Norway