SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Debugging and Testing DATA Steps
Debugging a DATA Step


Question: Which of the following DATA step programs contains a syntax error?
data nw.product2;
   set nw.Productn;
   if product='2';
   TotalProduct=newproduct+stock;
run;

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