SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Debugging and Testing DATA Steps
Testing Your Programs


Question: Which DATA step enables you to test for compilation and execution errors without creating a data set?

   data _null_;
      set nw.productn;
      if product='2';
      TotalProduct=newproduct+stock;
   run;

   options obs=0;
   data nw.product2;
      set nw.productn;
      if product-'2';
      TotalProduct=newproduct+stock;
   run;



  back||next

 

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

Terms of Use & Legal Information | Privacy Statement