SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||

Transforming Data with SAS Functions
Manipulating SAS Date Values with Functions
 


Question: Which DATA step below creates a new data set that contains information about field trials completed during 1997? The variable TestDate contains the date of the field trials.

data drg.febtrial;
   set drg.trial;
   if (year,testdate)='1997';
run;
data drg.febtrial;
   set drg.trial;
   if year(testdate)=1997;
run;


  ||

 

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

Terms of Use & Legal Information | Privacy Statement