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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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