Create SAS-formatted Datasets


This module provides instruction on how to create SAS-formatted datasets from the feasibility and NHANES data files.


Task 1: Create SAS-formatted Feasibility File

The feasibility files are public-use text files and will not open directly into the SAS environment. NCHS has provided a sample SAS program to read in the feasibility files and add labels. Using the provided SAS code, you will create a SAS-formatted dataset.

Task 2: Create SAS-formatted Datasets from the NHANES Data File

Both the Medicare and Medicaid sample SAS programs include SAS code for creating a SAS-formatted dataset for the NHANES Demographic File. The codes are the same, so running either one will create the same dataset. For more information about the NHANES files, please refer to the continuous NHANES web tutorial.