SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Transforming Data with SAS Functions
Converting Data with Functions
 


Question: Which statement correctly describes the result of submitting the DATA step that is shown below? The variables TotalPay and Commission are numeric. The variable Pay is character.
     data reg.newsales;
set reg.sales;
TotalPay=pay+commission;
run;
The numeric variables TotalPay and Commission are converted to character because they are used in a character context.

	
The character variable Pay is converted to numeric because it is used in a numeric context.  


  back||next

 

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

Terms of Use & Legal Information | Privacy Statement