By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (123)

The following SAS program is submitted: data test; set sasuser.employees; if 2 le years_service le 10 then amount=1000; else if years_service gt 10 then amount=2000; else amount=0; amount_per_year=years_serice/amount; run; Which one of the following values does the variable AMOUNT_PER_YEAR contain if an employee has been with the company for one year? A. 0 B. 1000 […]

By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (122)

The contents of the raw data file AMOUNT are listed below: —-|—-10—|—-20—|—-30 $1,234 The following SAS program is submitted: data test; infile’amount’; input @1 salary 6.; if _error_ then description=’Problems’; else desription=’No Problems’; run; Which one of the following is the value of the DESCRIPTION variable? A. Problems B. No Problems C. ‘ ‘ (missing […]

By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (121)

The contents of the raw data file NAMENUM are listed below: —-|—-10—|—-20—|—-30 Joe xx The following SAS program is submitted: data test; infile’namenum’; input name $ number; run; Which one of the following is the value of the NUMBER variable? A. xx B. Joe C. . (missing numeric value) D. The value can not be […]

By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (120)

The contents of the raw data file AMOUNT are listed below: —-|—-10—|—-20—|—-30 $1,234 The following SAS program is submitted: data test; infile’amount’; input @1 salary 6.; run; Which one of the following is the value of the SALARY variable? A. 1234 B. 1,234 C. $1,234 D. . (missing numeric value)

By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (119)

Which one of the following statements is true regarding the SAS automatic _ERROR_ variable? A. The _ERROR_ variable contains the values ‘ON’ or ‘OFF’. B. The _ERROR_ variable contains the values ‘TRUE’ or ‘FALSE’. C. The _ERROR_ variable is automatically stored in the resulting SAS data set. D. The _ERROR_ variable can be used in […]