SAS Base Functions Practice Exam | Questions & 100% Correct Answers (Verified) | Latest Update | Grade A+
Select the proper syntax to perform the following instructions: Specify the proper syntax for the MDY function to create a SAS value detailing how many days since Jan/01/1960. A. MDY(20,15,15); B. MDY(10,15,15); C. MDY(10,35,15); D. MDY(10/15/15); : B. MDY(Mon, Day, Year) (only valid option as M has max=12 D max=31) NOTE: if you use a two-digit year, the default year‐cutoff is applied (1920) unless you previously submitted an options yearcutoff= with a year different than 1920. Ex: Assuming 1920 is the cutoff year(default), MDY(11,1,15); results in the number of days November 1, 2015 is from January 1, 1960. 2 | P a g e MDY (11,1,1915); results in the number of days November 1, 1915 is from January 1, 1960. MDY(11,1,23); results in number of days November 1, 1923 is from Janbuary 1, 1960. MDY(14,10, 2010) returns missing as 14 isn't a month 1‐12. Select the proper syntax to perform the following instructions: Specify the proper function to specify a variable equaling today's date as a SAS date, just the date. A. var=time(); B. var=date(); C. var=datetime(); : B. var=today(); today(); gives today's date value as a SAS date or date(); gives today's date value as a SAS date Select the proper syntax to perform the following instructions: Specify the proper function to specify a variable equaling today's date and time as a SAS datetime. A. var=time(); B. var=date(); C. var=datetime(
Información del documento
- Subido en
- 24 de abril de 2024
- Número de páginas
- 77
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas