BookmarkSubscribeRSS Feed
djabhiishek
Calcite | Level 5

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;


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?

2 REPLIES 2
MarkusWeick
Barite | Level 11

Hi @djabhiishek,

same question here: SAS beginner - SAS Support Communities

but with some replies.

Best

Markus

Please keep the community friendly.
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
LinusH
Tourmaline | Level 20
  1. Run the program
  2. Examine the results
Data never sleeps

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 243 views
  • 0 likes
  • 3 in conversation