- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kumaabi,
have you run the program? What ist your problem?
Best
Markus
Like posts you agree with or like. Mark helpful answers as “accepted solutions”. Generally have a look at https://communities.sas.com/t5/Getting-Started/tkb-p/community_articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Like posts you agree with or like. Mark helpful answers as “accepted solutions”. Generally have a look at https://communities.sas.com/t5/Getting-Started/tkb-p/community_articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Like posts you agree with or like. Mark helpful answers as “accepted solutions”. Generally have a look at https://communities.sas.com/t5/Getting-Started/tkb-p/community_articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
What is the input data set? - the input dataset you can see in the set statement i.e.: mylib.room
How many output data sets are being created? - Two output datasets will be created: females and others
How many variables are in work.female? - 4 variables: name,sex, age, weight
How many observations are in work.others? - 19 observations
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
And on top of everything:
DO
NOT
DOUBLE
POST
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content