SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Improving Program Efficiency with Macro Variables
Creating Macro Variables During DATA Step Execution


Question: Which DATA step below executes the SYMPUT routine only when the last observation has been read from the data set?

 
%let lib=master;
data &lib..prod end=end;
   set &lib..newprod;
   if end then
      call symput('trial',test);
run;
 
%let lib=master;
data &lib..prod;
   set &lib..newprod end=end;
   if end then
      call symput('trial',test);
run;



  back||next


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

Terms of Use & Legal Information | Privacy Statement