SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Transforming Data with SAS Functions
Modifying Character Values with Functions
 


Question: Write an assignment statement to create the variable Group by extracting the age group (ADULT or CHILD) from the values of the variable Viewer. Make sure the variable name is specified exactly as shown. Two sample values of Viewer appear below:
 
     ADULTF37.4
     CHILDF26.2


           
  ||next

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

Terms of Use & Legal Information | Privacy Statement