Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam A00-211 All Questions

View all questions & answers for the A00-211 exam

Exam A00-211 topic 1 question 2 discussion

Actual exam question from SAS Institute's A00-211
Question #: 2
Topic #: 1
[All A00-211 Questions]

The following SAS program is submitted:
data work.empsalary;
set work.people (in = inemp)
work.money (in = insal);
if insal and inemp;
run;
The SAS 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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Lisa_L
11 months, 3 weeks ago
Selected Answer: A
The crucial part of the program is the IF statement: if insal and inemp;. This line means that an observation will be included in the WORK.EMPSALARY data set only if it is present in both work.people (indicated by inemp) and work.money (indicated by insal). Therefore, no observations will meet the if insal and inemp; condition.
upvoted 1 times
...
_124
1 year, 1 month ago
I think D is correct
upvoted 1 times
...
Mandar77
2 years, 5 months ago
Answer A is right. I think, IN option is mostly used when we are merging datasets. Also, it need by statement and both datasets must be sorted. I never seen example while learning where you are concatenating the datasets.
upvoted 1 times
...
nbav
3 years ago
Sorry about the wrong code below please ignore it.
upvoted 1 times
...
nbav
3 years ago
A is the correct answer. 0 obs. Run the following code and try to understand what is going on in the in= option. Uncomment the if statement and run it aging. You will get 0 obs. DATA CAFE(KEEP=NAME PLACE CNUM); INPUT NAME $ ; PLACE = 'CAFE '; CNUM = 'C' || LEFT(PUT(_N_,2.)); DATALINES; ANDERSON COOPER DIXON FREDERIC FREDERIC PALMER RANDALL RANDALL SMITH SMITH SMITH ; RUN; DATA VENDING (KEEP=NAME PLACE VNUM); INPUT NAME $ ; PLACE = 'VENDING '; VNUM = 'V' || LEFT(PUT(_N_,2.)); DATALINES; CARTER DANIELS GARY GARY HODGE PALMER RANDALL RANDALL SMITH SMITH SPENCER SPENCER SPENCER SPENCER ; RUN; DATA ALL; set CAFE(IN=CAFEIN) SNACK(IN=SNACKIN); CIN=CAFEIN; SIN=SNACKIN; *if CIN and SIN; RUN;
upvoted 1 times
...
Kleinstone
3 years, 10 months ago
should be D.12?
upvoted 1 times
...
Suhan
3 years, 11 months ago
reason why 0?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...