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 help to 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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 742 views
  • 0 likes
  • 3 in conversation