SAS_Institute
A00-280 · Question #34
A00-280 Question #34: Real Exam Question with Answer & Explanation
Sign in or unlock A00-280 to reveal the answer and full explanation for question #34. The question stem and answer options stay visible for context.
Question
Study day is defined as DCMDTE minus RFSTDTC +1
DCMDTE
is character data in YYYYMMDD format
contains partial date values
RFSTDTC
is character data in date9 format
contains missing values
Which statement will compute the study day correctly without producing missing values in the log?
Options
- ASTUDYDAY=DCMDTE-RFSTDTC+1;
- BSTUDYDAY=input(DCMDTE,yymmdd8.)-input(RFSTDTC,date9.)+1;
- Cif RFSTDTC=' ' and length(DCMDTE)=8 then STUDYDAY=input(DCMDTE,yymmdd8.)-input(RFSTDTC,date9.)+1;
- DIf RFSTDTC=' ' and length(DCMDTE)=8 then STUDYDAY=input(DCMDTE,yymmdd8.)+1; -input(RFSTDTC, yymmdd8.)+1;
Unlock A00-280 to see the answer
You've previewed enough free A00-280 questions. Unlock A00-280 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.