Does this also work on the same level...
data work.joblevels;
set work.actors;
if jobcode in ('Actor I', 'Actor II') then
joblevel='Beginner';
if jobcode='Actor III' then
joblevel='Advanced';
else joblevel='Unknown';
run;
Which of the following represents the possible...
Hey Klaz,
I am sorry, being new to programing I still did not get it.What I understood that if level is 2 or 3 then expertise is 'medium'....(This statement should be true for all observations having a level of 2 or 3 )
Burt has a level of 4 which according to me falls in the High...
Hi,
I was wondering as to how the solution to this problem is (B).Howcome Burt who has a level of 4 is assigned Medium..
Obs name level
1 Frank 1
2 Joan 2
3 Sui 2
4 Jose 3
5 Burt 4
6 Kelly .
7 Juan 1
The following SAS program is submitted:
data work.expertise;
set work.levels;
if level = ...
Hi,
If you want the following output ..
capacity airplanetype staff
150 Large 10
then whats wrong with this code...
data work.test;
capacity = 150;
if 100 le capacity le 200 then
airplanetype = 'Large' and staff = 10;
else airplanetype = 'Small' and staff = 5;
run;
Thanks
Can someone please tell me for the following output
capacity airplanetype staff
150 Large 10
why the first code works and the second doesnt...
CODE_1
data work.test;
capacity = 150;
if 100 le capacity le 200 then
do;
airplanetype = 'Large';
staff = 10;
end;
else
do;
airplanetype...
Thanks ....I read some documentation on the diff in both types as well as the trailing sign and it helped.I learnt even the debug option is useful sometimes to see the flow of logic.
Data:
Each record contains a varying number of values for Activity.
First Five Records
Raw Data File Excdata3
1---+----10---+----20---+----30---+----40
1051 TENNIS SWIMMING AEROBICS
1052 JOGGING BASKETBALL
1053 AEROBICS SWIMMING CYCLING
1054 GOLF JOGGING TENNIS
1055 WALKING AEROBICS...
Hey guys,
I am trying to understand the difference between @ and @@. For the data below both works.So whats the diff and why do we need another @ (input sales :comma.)to read the data below...(Is there a simple way to solve problems with single and double trailing)
DATA
0734 1,323.34...
Hey Chris,
Thanks for the reply .Well what if I want surname and forename under one variable NAME (Eg Justin Blair, Christine Brady...) Is that possible and how would the code change for that
Thanks,
Roland
Hi,
I am a beginner in sas .Can someone tell me how to input this raw data file into sas .The fields are ID,Name, City, State, Sex and Code
1333,BLAIR,JUSTIN,STAMFORD,CT,M,PT2,
1428,BRADY,CHRISTINE,STAMFORD,CT,F,PT1,
1439,HARRISON,FELICIA,BRIDGEPORT,CT,F,PT1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.