c:\hrs2022\stata  
Unzipped files from H22sta.zip  
Decompress the selected .zip files into the appropriate subdirectories.  
6. Program Statements  
Each data file comes with associated SPSS, SAS, or Stata program statements to  
read the data. Files containing SPSS statements are named with .SPS extension,  
those with SAS statements with a .SAS extension, and those with Stata statements  
with .DO and .DCT extensions.  
The statement files are named beginning with the same prefix as the  
corresponding data file. For example, SAS statements in the file H22A_R.SAS go  
with the H22A_R.DA data file.  
6A. Using the Files with SAS  
To create a SAS system file for a particular dataset, two file types must be  
present for that dataset -- .SAS program statement files and .DA data files.  
To create a SAS system file, load the *.SAS file into the SAS Program Editor.  
If the *.SAS file is located in "c:\hrs2022\sas" and the data file is located in  
"c:\hrs2022\data", you can run the file as is. A SAS system file (*.SD2 or  
*.SAS7BDAT) will be saved to directory "c:\hrs2022\sas".  
If the files are not located in the specified directories, you will need to edit  
the *.SAS file to reflect the proper path names prior to running the file.  
6B. Using the Files with SPSS  
To create an SPSS system file for a particular dataset, two file types must be  
present for that dataset -- .SPS program statement files and .DA data files.  
To create an SPSS system file, open the *.SPS file in SPSS as an SPSS Syntax  
File.  
If the *.SPS file is located in "c:\hrs2022\spss" and the data file is located  
in "c:\hrs2022\data", you can run the file as is. An SPSS system file (*.SAV)  
will be saved to directory "c:\hrs2022\spss".  
If the files are not located in the specified directories, you will need to edit  
the *.SPS file to reflect the proper path names prior to running the file.  
6C. Using the Files with Stata  
To use Stata with a particular dataset, the following three file types must be  
present for that dataset -- .DCT files, .DO files, and .DA data files.  
Files with the suffix .DA contain the raw data for Stata to read. Files with  
the suffix .DCT are Stata dictionaries used by Stata to describe the data. Files  
with the suffix .DO are short Stata programs ("do files") which you may use to  
read in the data. Load the .DO file into Stata and then submit it.  
If the *.DO and *.DCT files are located in "c:\hrs2022\Stata" and the data file  
is located in "c:\hrs2022\data", you can run the .DO file as is.  
If the files are not located in these directories, you must edit the *.DO and  
*.DCT files to reflect the proper path names before you run the files.  
10  
February 2024, Version 1.0