Please explain the below question.

Reply
New Contributor
Posts: 4

Please explain the below question.

The following GAS program is submitted:

data work.empsalary;

set work.people (in = inemp)

work.money (in = insal);

if insal and inemp;

run;

The SAG data set WORKPEOPLE has 5 observations, and the data set WORKMONEY has 7

observations. How many observations will the data set WORK.EMPSALARY contain?

A. 0

B. 5

C. 7

D. 12

Super User
Posts: 10,028

Re: Please explain the below question.

Posted in reply to Divya_S123

A ?

SAS Super FREQ
Posts: 3,753

Re: Please explain the below question.

Posted in reply to Divya_S123

If I was teaching a class, this is the kind of question that I would ask my students to think about to make sure they understand the IN= data set option.  Here is the documentation:

SAS(R) 9.4 Data Set Options: Reference, Third Edition

Ask a Question
Discussion stats
  • 2 replies
  • 1319 views
  • 0 likes
  • 3 in conversation