SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Transforming Data with SAS Functions
Modifying Character Values with Functions
 


Question: Which DATA step below replaces the contents of the character variable Retail if the value of the variable Master is 35?

data area2.prod2;
   set area2.prod;
   if master=35 then STND=substr(retail,1,4);
run;
data area2.prod2;
   set area2.prod;
   if master=35 then substr(retail,1,4)='STND';
run;



  ||next

 

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

Terms of Use & Legal Information | Privacy Statement