Questions for the A00-211 were updated on : Nov 21 ,2025
The following SAS program is submitted:
data WORK.PRODUCTS;
Prod=1;
do while (Prod LE 7);
Prod + 1;
end;
run;
What is the value of the variable Prod in the output data set?
B
The following SAS program is submitted:
Data WORK.COMPRESS;
ID = ‘1968 05-10 567’;
NewID = compress (ID, “-“);
run;
What will the value of NewID be in the WORK.COMPRESS data set?
A
This questions will ask you to provide two missing variable names.
The following SAS program is submitted:
data WORK.TOTAL;
set WORK.SALARY;
by Department Gender;
if First. <insert variable 1 here> then Payroll=0
Payroll+Wagerate;
if Last.<insert variable 2 here>;
run;
The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which inserted
code will accumulate subtotals for each Gender within Department?
B
Given the SAS data set WORK.TEMPS with numeric variables Day and Temp and character variable
Month:
The following SAS program is submitted:
proc sort data=WORK.TEMPS;
by Day descending Month;
run;
proc print data=WORK.TEMPS;
run;
Which output is correct?
B
Given the following data set WORK.TOYS:
The following SAS program s submitted:
data WORK.GROUPS;
set WORK.TOYS;
if Product=”Cards” then Group_Desc=”Indoors”;
else if Product in (“Drum”, “Recorder”) then Group_Desc=“Instruments”;
else if Product=”Ball” then Group_Desc=”Outdoors”;
run;
proc print data=WORK.GROUPS noobs;
run;
Which output is produced?
C
The Excel workbook REGIONS.XLSX contains the following four worksheets:
EAST
WEST
NORTH
SOUTH
The following program is submitted:
libname MYXLS XLSX ‘c:\ data\ regions.xlsx’;
Which PROC PRINT step correctly displays the NORTH worksheet?
D
A SAS programmer assigns a library reference to an existing Excel workbook named exceldata.xlsx.
Using a DATA step, the programmer attempts to create a worksheet named outdata in this Excel
workbook. However, the Excel workbook already contains a worksheet named outdata.
What will happen?
A
When SAS encounters a data when reading from a raw data file, which action will occur?
D
The SAS data set WORK.ONE contains a numeric variable named Num and a character variable
named Char:
The following SAS program is submitted:
proc print data=WORK.ONE;
where Num=contains (1);
run;
Which output is generated?
D
Given the SAS data set WORK. PRODUCTS:
The following SAS program is submitted:
data WORK. REVENUE (drop=Sales Returns);
set WORK. PRODUCTS (keep=ProdId Price Sales Returns);
Revenue-Price* (Sales-Returns);
run;
How many variables does the WORK.REVENUE data set contain?
A
Given the data set WORK.DEPARTMENTS:
The following SAS program is submitted:
Which output will be generated?
B
Given the raw data file ‘DEPENDENTS.TXT’:
The following SAS program is submitted:
What will be the value of _ERROR_ in the Program Data Vector for each iteration of the DATA step?
B
After a SAS program is submitted, the following is written to the SAS log:
What issue generated the error in the log?
C
Reference:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202902
.htm
There are 451 observations in the data set WORK.STAFF. The following SAS program is submitted:
What will be the value of NewVar when SAS writes the last observation?
A
The following SAS program is submitted:
If the value for the Alumcode is: ALUM2, what is the value of the variable Description?
A