SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Improving Program Efficiency with Macro Variables
Creating Your Own Macro Variables


Question: Add a SET statement to the DATA step below to read the permanent data set Admin.Hotelsum. When writing this statement, reference the macro variable library to supply the first level name of the data set.

%let library=admin;
data hotel74;
   
   if hotel=74 and year(indate)=1998;
run;

           


  back||next


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

Terms of Use & Legal Information | Privacy Statement