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)- A12% (3)
- B4% (1)
- C81% (21)
- D4% (1)
Community Discussion
No community discussion yet for this question.