carla
data three;
country=('Italy''Russia''israel');
found=index(lowcase(country),'is');
run;
found=
carla
Data twelve;
Address='316 Harlo Dr.';
AD1= Tranwrd(address, 'Dr.', 'Drive');
run;
the length of AD1?
carla
Data twelve2;
Address='316 Harlo Dr.';
length AD1 $ 20;
AD1= Tranwrd(address, 'Dr.', 'Drive');
run;
the length of AD1?
carla
data thirteen;
do year=1 to 5;
do month=1 to 12;
total+1;
output;
end;
end;
run;
how many observation produced?
carla
data thirteen;
do year=1 to 5;
do month=1 to 12;
total+1;
end;
end;
run;
how many observation produced?
carla
data fifteen;
do until (month gt 6);
month+1;
end;
run;
? month=
carla
merge, set statement in data step, very important.
carla
mean function---- mean(of x1-x3)
mean=x1+x2+x3
especially when there is missing value