Question : Given the raw data file AMOUNT: ----I---- 10---I----20---I----30 $1,234 The following SAS program is submitted: data test; infile `amount'; input@1 salary 6.; if_error_then description = `Problems'; else description = `No Problems'; run; What is the result?
1. The value of the DESCRIPTION variable is No Probl. 2. The value of the DESCRIPTION variable is Problems. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The value of the DESCRIPTION variable can not be determined.
Question : The following SAS program is submitted: data work.total; set work.salary(keep = department wagerate); by department; if first.department then payroll = 0; payroll + wagerate; if last.department run; The SAS data set WORK.SALARY, currently ordered by DEPARTMENT, contains 100 observations for each of 5 departments. What is the result?
Question : The following SAS program is submitted; data combine; country = `Italy, Russia, ireland'; found = find(country, `i'); run; What is the value of the variable FOUND in the output data set?
1. The _ERROR_ variable maintains a count of the number of data errors in a DATA step. 2. The _ERROR_ variable is added to the program data vector and becomes part of the data set being created. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The _ERROR_ variable contains the number of the observation that caused the data error.