Science Inventory

SAS FORMATS: USES AND ABUSES

Citation:

Croghan, C. SAS FORMATS: USES AND ABUSES. Presented at Southeastern SAS User Group, St. Petersburg, FL, September 22-24, 2003.

Impact/Purpose:

o Develop publically accessible databases

o Disseminate human exposure data bases and data tools in an appropriate manner to improve human exposure research and information.

o Ensure that human exposure data sets generated by HEASD and its contractors or collaborators are useful for data analysis and for human exposure modeling, by providing formats and guidance on data base creation, documentation, storage, and retrieval.

o Ensure that data sets produced in HEASD conform with ORD and EPA requirements.

o Compile and translate existing human exposure data sets into useful formats for use by HEASD scientists and modelers.

o Make fully documented human exposure data sets available for researchers with collaborating external organizations.

Description:

SAS formats are a very powerful tool. They allow you to display the data in a more readable manner without modifying it. Formats can also be used to group data into categories for use in various procedures like PROC FREQ, PROC TTEST, and PROC MEANS (as a class variable). As with many powerful tools, there are some 'gotchas' to be aware of. Formats can crash a program without specific options. They can produce misleading information; this is especially true for picture format. There are many aspects of formats to consider, including 'built-in' or 'user defined' formats. A format may be temporary or permanent. The PUT and INPUT functions can be used to generate new variables using formats. If you have several format libraries, managing the formats can be difficult. The SAS dictionary tables are useful in managing the different formats. Code and output examples demonstrate the various uses and potential abuses of SAS formats.

This paper has been reviewed in accordance with the Untied States Environmental Protection Agency's peer and administrative review policies and approved for presentation and publication. Mention of trade names or commercial products does not constitute endorsement or recommendation for use.

Record Details:

Record Type:DOCUMENT( PRESENTATION/ PAPER)
Product Published Date:09/23/2003
Record Last Revised:06/21/2006
Record ID: 64047