SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||

Transforming Data with SAS Functions
Manipulating SAS Date Values with Functions
 


Question: Examine the data set Hrd.Hire that is shown below. Which of the following functions creates a SAS date value for the date on which employees were hired? All employees are hired on the first of the month.
 
SAS Data Set Hrd.Hire
Name Month Year
Russell, M 5 1998
Rogers, A 7 2000
Carrol, D 12 1995
Kent, S 2 1997

mdy(1,month,year)
mdy(month,year)
mdy(month,1,year)
mdy(month,day,year)



  ||

 

Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement