Skip directly to search Skip directly to A to Z list Skip directly to navigation Skip directly to site content Skip directly to page options
CDC Home

NHANES Environmental Chemical Data Tutorial

Save a Dataset


In this module, you will learn how to create a permanent dataset in a SAS library. This will allow you to save the temporary dataset that you have created, as a permanent dataset in a location where it can be retrieved and used later without having to recreate it each time that you restart SAS. In addition, all data manipulations such as merges, appends, records, and labels are saved and do not need to be re-run every time the dataset is used.


Task 1: Create a Permanent Dataset in a SAS Library

In the previous modules, you worked with a temporary dataset that exists only as long as your analysis session is open. In this module, you will take that temporary dataset, save it as a permanent file in your directory or library, and it will be stored between analysis sessions.


Because the procedure is the same as it would be for any dataset, links to the Continuous NHANES Web Tutorial are provided here for your convenience. If you use the code, please be sure to change it to match the filenames for your environmental analytic dataset.

Task 2: Save NHANES Data to a Microsoft Excel Spreadsheet with SAS

In some cases, you may wish to save the NHANES data to an Excel spreadsheet. This section provides brief instructions on how to save NHANES data to a Microsoft Excel spreadsheet.


Contact Us:
  • National Center for Health Statistics
    3311 Toledo Rd
    Hyattsville, MD 20782
  • 1 (800) 232-4636
  • The U.S. Government's Official Web PortalDepartment of Health and Human Services
Centers for Disease Control and Prevention   1600 Clifton Road Atlanta, GA 30329-4027, USA
800-CDC-INFO (800-232-4636) TTY: (888) 232-6348 - Contact CDC–INFO
A-Z Index
  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
  8. H
  9. I
  10. J
  11. K
  12. L
  13. M
  14. N
  15. O
  16. P
  17. Q
  18. R
  19. S
  20. T
  21. U
  22. V
  23. W
  24. X
  25. Y
  26. Z
  27. #