O'Reilly logo

The Little SAS® Book for Enterprise Guide® 4.1 by Lora D. Delwiche, Susan J. Slaughter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.12. Recoding Values in a Query

If you want to group data together based on a set of values in a column, you can do this by recoding a column in the Query Builder. For example, if you have sales offices from several different cities, you may want to group them by region. If region is not already defined in the data, then you can define it using the Query Builder. Recoding a column is similar to creating and applying user-defined formats to a column. But, when you recode a column, you create a newly computed column where the data values are actually changed. When you use formats, only the way the data values are displayed is changed.

Here are a few rows from the Latlong data table, which gives the latitude and longitude of volcanoes from around ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required