# SAS rules
## Case sensitive
SAS in not case sensitive.
```sas
proC PrinT daTa = woRK.IntrO;
WHerE Rating = 2;
run;
```
SAS is case sensitive while comparing.
```sas
proc print data = work.InTro;
where rating = 2;
run;
```
## Spaces don't matter
```sas
proc print data = work.intro; where rating =2; run ;
```
## Variables in SAS
```sas
proc print data = work.intro;
where rating = 2;
run;
\\rating is a variable here
```
## Work library
Work is the default library.
```sas
data test5;
input x y p q;
datalines;
1 2 55
3 4 77
5 6 99
7 8 33
9 10 44
;
run;
proc print data = test5;
run;
```
## Data step
```sas
data work.test;
x=12;
y=34;
z= 35;
run;
```
## Proc step
```sas
proc print data = work.test;
run;
```
## Data types in SAS
There are only two datatypes in SAS. **char** and **numbers**.
Characters end with a dollar sign.
```sas
data work.test9;
input name$ age salary;
datalines;
a 23 442323
b 43 23423423
c 32 4242443
d 44 3242424
;
run;
proc print data = work.test9;
run;
```
Can't perform numeric operations on characters.
# Comma is usually not required
# Comments in SAS
There are two ways to mention comments in SAS
```sas
* class post;
* semicolon is needed;
```
```sas
/* class post; */
```