nerdexam
SAS_Institute

A00-281 · Question #38

Study day is defined as DCMDATE minus RFSTDTC +1 Which statement will compute the study day correctly without producing notes for missing values in the log?

The correct answer is C. If RFSTDTC^='' and length(DCMDATE)=8 then. See the full explanation below for the reasoning.

Question

Study day is defined as DCMDATE minus RFSTDTC +1 Which statement will compute the study day correctly without producing notes for missing values in the log?

Options

  • ASTUDYDAY=DCMDATE-RFSTDTC+1;
  • BSTUDYDAY=input(DCMDATE,yymmdd8.)-input(RFSTDTC,date9.)+1;
  • CIf RFSTDTC^='' and length(DCMDATE)=8 then
  • DIf RFSTDTC^='' and length(DCMDATE)=8 then STUDYDAY=input(DCMDATE,date9.)

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    81% (21)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full A00-281 Practice