Transcription of 5. TRANSFORMING SAS DATA SETS - Rho
{{id}} {{{paragraph}}}
5-15. TRANSFORMING SAS data new SAS data and TRANSFORMING variables Reading Assignment:Selected SAS Documentation for Bios111 Part 3: TRANSFORMING SAS data SetsREVISED FALL 20005-2 Creating New SAS data SetsIt will often be desirable to modify an existing SAS data set in some way--selecting only a subset of the originalobservations, TRANSFORMING variables, creating new variables, etc. These kinds of modifications areaccomplished within a data A data Stepv Reads one or more input data sets (SAS and/or non-SAS)v Performs processing (transformations, selections, etc.), if specifiedv Creates one or more output data sets (SAS or non-SAS)v In this chapter we will only discuss reading a single input SAS data set and creating a single output SASdata set. The other possibilities will be covered in subsequent All of the modification statements we will discuss can be used with any combination of input and of A data StepA data step that creates a single output SAS data set by modifying a single input SAS data set has a five part data statement to start the step and name the output data SET statement to read an observation from the input data statements to perform the processing required for this OUTPUT statement to write the observation to the output data set5.
5-2 Creating New SAS Data Sets It will often be desirable to modify an existing SAS data set in some way--selecting only a subset of the original
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}