BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a dataset with formats, 1=Male, 2=Female. When I open the dataset or use proc print, all I see is "Male" and "Female", but I would rather see the 1 and 2. Is there a way to change the options for viewing or do I have to remove the formats?
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Specify a FORMAT statement with your variable name and leave off the output format parameter, as in:

FORMAT MY_VAR ;

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
So is there no way to remove it when I view the dataset? Most of the time I like to just click on the dataset to view it instead of using proc print.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Yes, right-click on the column to change the attribute FORMAT.

Scott Barry
SBBWorks, Inc.
Peter_C
Rhodochrosite | Level 12
use sas system viewer to examine the data set.
It has a button/icons for formatted and unformatted views. It has other good features too.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2208 views
  • 0 likes
  • 3 in conversation