nerdexam
SAS_Institute

A00-280 · Question #42

Given the following data set: SUBJID GENDER AGE TPT 4 M 63 3 5 F 72 4 3 M 45 1 1 M 57 2 2 F 39 1 3 M 57 2 The following output data set was produced. SUBJID GENDER AGE TPT 3 M 57 1 1 M 57 2 4 M 63 2…

The correct answer is A. proc sort data=one (where=(age>50)) out=two; by subjID; run. See the full explanation below for the reasoning.

Question

Given the following data set: SUBJID GENDER AGE TPT 4 M 63 3 5 F 72 4 3 M 45 1 1 M 57 2 2 F 39 1 3 M 57 2 The following output data set was produced. SUBJID GENDER AGE TPT 3 M 57 1 1 M 57 2 4 M 63 2 4 M 63 0 5 F 72 3 Which SAS program produced this output?

Options

  • Aproc sort data=one (where=(age>50)) out=two; by subjID; run;
  • Bproc sort data=one (if=(age>50)) out=two; by subjID; run;
  • Cproc sort data=one out=two; where (age>50); by subjID; run;
  • Dproc sort data=one out=two; if age>50; by subjID; run;

How the community answered

(26 responses)
  • A
    85% (22)
  • B
    8% (2)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full A00-280 Practice