The SAS data set mylib.room has five variables (name, sex, age, height, and weight) and 19 observations (9 observations with sex='F' and 10 observations with sex='M').
Libname mylib 'C:\STA575\SASData';
Data work.female(drop=height) work.others(keep=name weight height);
Set mylib.room;
If sex='F' then output work.female;
Output work.others;
Run;
What is the input data set?
How many output data sets are being created?
How many variables are in work.female?
How many observations are in work.others?
Hi @kumaabi,
have you run the program? What ist your problem?
Best
Markus
Hi @kumaabi,
a got offer for a free learning unit to the basics can be found here:
https://support.sas.com/edu/schedules.html?crs=PROG1
Best
Markus
Hi @kumaabi,
I just saw Tom's advise, which I think is really good: Please help me to Answer the questions below - SAS Support Communities
Best
Markus
The SAS data set mylib.room has five variables (name, sex, age, height, and weight) and 19 observations (9 observations with sex='F' and 10 observations with sex='M').
Libname mylib 'C:\STA575\SASData';
Data work.female(drop=height) work.others(keep=name weight height);
Set mylib.room;
If sex='F' then output work.female;
Output work.others;
Run;
Please help me to Answer the questions below
What is the input data set?
How many output data sets are being created?
How many variables are in work.female?
How many observations are in work.others?
Give us you answers (and why you think they are the right answers) and we can confirm them or explain why they are not right.
@kumaabi wrote:
The reason I asked here because I dont know anything about sas. I have to take it because its a mandatory course in my university. This is an assignment question
I assume they assigned you something to read (or watch) so you should know something about SAS by now.
And even you don't you can still just read the code as if it was English and take a wild-a**-guess at some of the questions. Don't worry about being wrong, we aren't going to grade you.
Hello
As you are new to SAS pease this is a good introduction for you https://support.sas.com/resources/papers/proceedings11/054-2011.pdf .
And on top of everything:
DO
NOT
DOUBLE
POST
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.