Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an easy way to crosstab values to variables?

Status
Not open for further replies.

nixon1000000

Technical User
Sep 6, 2007
1
US
Is there an easy way with a SAS data set to take the values from one variable and make them variables containing a value from a second variable? Similar to a what a crosstab query does in MS Access.

The set I am working on has basically 3 variables now:
An identifier, an attribute name, and a value.
There are about 100 different attribute names. What I would like to end up with is a flattened data set with the identifierand the 100 different attribute names as variables with the correct values that correspond to these attributes.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top