SAS Advanced Programming for SAS 9 — Question 17
Which title statement would always display current date?
Answer options
- A. title " Today is: & today.";
- B. title "Today is: sysfunc (today (), worddate)";
- C. title "Today is: & sysdate. ";
- D. title "Today is: &sysdate.";
Correct answer: D
Explanation
The correct answer is D, as it correctly utilizes the macro variable &sysdate, which always represents the current date in SAS. Options A and B do not use the correct syntax for displaying the current date, while option C has an unnecessary space before &sysdate, which can lead to incorrect formatting.