SAS Programming 2:
Data Manipulation Techniques

This course is for those who need to learn data manipulation techniques using SAS DATA and procedure steps to access, transform, and summarize SAS data sets. The course builds on the concepts that are presented in the SAS Programming 1: Essentials course and is not recommended for beginning SAS software users. This course can help prepare you for the following certification exam(s): SAS Base Programming for SAS 9, SAS Certified Clinical Trials Programmer Using SAS 9.

Learn how to

  • Control SAS data set input and output
  • Combine SAS data sets
  • Summarize, read, and write different types of data
  • Perform DO loop and SAS array processing
  • Transform character, numeric, and date variables.

Who should attend
Business analysts and SAS programmers.

Before attending this course, you should have at least six months of experience writing SAS programs or have completed the SAS Programming 1: Essentials course and used SAS for at least one month. Specifically, you should be able to:
  • Submit a SAS program
  • Diagnose and correct syntax errors
  • Examine descriptor and data portions of a SAS data set
  • Access SAS data libraries
  • Read and create SAS data sets
  • Read Excel spreadsheets
  • Read delimited raw data files
  • Examine data errors when reading raw data files
  • Use SAS procedures to validate data
  • Clean invalid data
  • Create variables
  • Combine SAS data sets
  • Use global statements
  • Use labels and formats, including user-defined formats
  • Subset observations
  • Produce summary reports using the FREQ and MEANS procedures

Course details:

  • Course logistics
  • Creating course data files
Controlling Input and Output
  • Writing observations explicitly
  • Writing to multiple SAS data sets
  • Selecting variables and observations
Summarizing Data
  • Creating an accumulating total variable
  • Accumulating totals for a group of data
Reading Raw Data Files
  • Reading raw data files with formatted input
  • Controlling when a record loads
Data Transformations
  • Manipulating character values
  • Manipulating numeric values
  • Converting variable type
Debugging Techniques
  • Using the PUTLOG statement
Processing Data Iteratively
  • DO loop processing
  • Conditional DO loop processing
  • SAS array processing
  • Using SAS arrays
Restructuring a Data Set
  • Rotating with the DATA step
Combining SAS Data Sets
  • Using data manipulation techniques with match-merging
Creating and Maintaining Permanent Formats
  • Creating permanent formats
Other SAS Languages
  • an Overview of other languages
  • Using the SQL procedure
  • The SAS macro language