| Exam Code/Number: | A00-201Join the discussion |
| Exam Name: | SAS base programming exam |
| Certification: | SASInstitute |
| Question Number: | 140 |
| Publish Date: | Aug 25, 2026 |
|
Rating
100%
|
|
When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000 observations:
libname sasdata 'SAS-data-library';
options obs = 500;
proc print data = sasdata.prdsales (firstobs = 100);
run;
options obs = max;
proc means data = sasdata.prdsales (firstobs = 500);
run;
How many observations are processed by each procedure?
Unless specified, which variables and data values are used to calculate statistics in the MEANS procedure?
The following SAS DATA step is submitted:
data sasdata.atlanta
sasdata.boston
work.portland
work.phoenix;
set company.prdsales;
if region = 'NE' then output boston;
if region = 'SE' then output atlanta;
if region = 'SW' then output phoenix;
if region = 'NW' then output portland;
run;
Which one of the following is true regarding the output data sets?
Which one of the following is true when SAS encounters a data error in a DATA step?
The contents of two SAS data sets named EMPLOYEE and SALARY are listed below:
The following SAS program is submitted:
data work.empsalary;
merge work.employee (in = inemp)
work.salary (in = insal);
by name;
if inemp and insal;
run;
How many observations will the data set WORK.EMPSALARY contain?