BookmarkSubscribeRSS Feed
Haris
Lapis Lazuli | Level 10

I must be going blind: I can't find a way to turn off formats in SEG data view.  Similar to the option to view variable names versus labels, can I toggle between formatted and unformatted display? I am looking at a list of 30 formatted numbers and want to use the WHERE filter in the data viewer but, to do that, I need to know the underlying number not the formatted name.

 

I am using SEG 7.1 in case that matters.

4 REPLIES 4
Kurt_Bremser
Super User

AFAIK, the SAS Viewtable windows always show the formatted values. But it is not so hard to define a format-less view:

proc format;
value $sex
  "F" = "Female"
  "M" = "Male"
;
run;

data class;
set sashelp.class;
format sex $sex.;
run;

data class2/view=class2;
set class;
format _all_;
run;
Haris
Lapis Lazuli | Level 10
Thanks Kurt. A view is a possibility. If you enter the data-edit mode in the data viewer and double-click on any cell, the value under the format shows up too. It's just a bit of a pain to do that in many cases. In my example, I suspected that the items are not sorted in ascending order of the underlying values. That required me to click on each of the 30 cells or resort to other tricks. It would be nice if SAS included a simple toggle switch to turn formats on and off as needed.
Haris
Lapis Lazuli | Level 10
Done!

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2022 views
  • 1 like
  • 2 in conversation