FA Assignment
FA Assignment
• Use a DATA step to create a SAS data set from an existing SAS data set.
Access data.
Control which observations and variables in a SAS data set are processed and
output.
• Use the WHERE and IF statements in the DATA step to select observations to be
processed.
• Subset variables to be output by using the DROP and KEEP statements.
• Use the DROP= and KEEP= data set options to specify columns to be processed and/or
output.
1
Exam Content Guide
• Use the SORT Procedure to re-order observations in place or output to a new dataset
with the OUT= option.
• Remove duplicate observations with the SORT Procedure.
Modify variable attributes using options and statements in the DATA step.
• Change the names of variables by using the RENAME= data set option.
• Use LABEL and FORMAT statements to modify attributes in a DATA step.
• Define the length of a variable using the LENGTH statement.
2
Exam Content Guide
Use SAS functions to manipulate character data, numeric data, and SAS date
values.
• Use SAS functions such as SCAN, SUBSTR, TRIM, COMPRESS, UPCASE, and LOWCASE
to perform tasks such as the tasks shown below.
o Replace the contents of a character value.
o Remove unwanted characters from strings.
o Search a character value and extract a portion of the value.
o Convert a character value to upper or lowercase.
• Use SAS numeric functions such as SUM, MEAN, RAND, SMALLEST, LARGEST, ROUND,
and INT.
• Create SAS date values by using the functions MDY, TODAY, DATE, and TIME.
• Extract the month, year, and interval from a SAS date value by using the functions
YEAR, QTR, MONTH, and DAY.
• Perform calculations with date and datetime values and time intervals by using the
functions INTCK, INTNX, and YRDIF.
• Use variable lists to efficiently reference multiple variables (OF operator, :,-,--).
Use SAS functions to convert character data to numeric and vice versa.
• Explain the automatic conversion that SAS uses to convert values between data types.
• Use the INPUT function to explicitly convert character data values to numeric values.
• Use the PUT function to explicitly convert numeric data values to character values.
3
Exam Content Guide
• Use the PUTLOG Statement in the Data Step to help identify logic errors.
• Use PUTLOG to write the value of a variable, formatted values, or to write values of all
variables.
• Use PUTLOG with Conditional logic.
• Use temporary variables N and ERROR to debug a DATA step.
• Modify the default behavior of PROC PRINT by adding statements and options such as
o use the VAR statement to select and order variables.
o calculate totals with a SUM statement.
o select observations with a WHERE statement.
o use the ID statement to identify observations.
o use the BY statement to process groups.
o use the NOOBS and LABEL options.
Generate summary reports and frequency tables using base SAS procedures.
• Produce one-way and two-way frequency tables with the FREQ procedure.
• Enhance frequency tables with options (NLEVELS, ORDER=).
• Use PROC FREQ to validate data in a SAS data set.
• Calculate summary statistics and multilevel summaries using the MEANS procedure.
o WAYS, CLASS, VAR, OUTPUT statements
• Enhance summary tables with options.
• Identify extreme and missing values with the UNIVARIATE procedure.
4
Exam Content Guide
Enhance reports using user-defined formats, titles, footnotes, and SAS System
reporting options.
Export data
• Create a simple raw data file by using the EXPORT procedure as an alternative to the
DATA step.
o Control the export file format with common DBMS identifiers: (csv, jmp, tab,
dlm).
• Export data to Microsoft Excel using the SAS/ACCESS XLSX engine.
Note: All 23 main objectives will be tested on every exam. The 72 expanded objectives are
provided for additional explanation and define the entire domain that could be tested.