SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Transforming Data with SAS Functions
Manipulating SAS Date Values with Functions
 


Question: Add an assignment statement to the DATA step below to create a variable named TestYear. Create TestYear by extracting the year value from the variable TestDate. Make sure the variable name is specified exactly as shown.

     data drg.newtrial;
        set drg.trial;
run;

           

  ||next

 

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

Terms of Use & Legal Information | Privacy Statement