BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Junyong
Pyrite | Level 9

The following code creates a variable m5 with an observation of five Ms.

data m5;
m5="MMMMM";
run;

SAS formats the variable as $5. since it contains five characters, but I cannot see the last M when I open the data set.

m5.png

How should I determine the format to properly include all the characters in the screen? In this case, by the way, it seems $6. displays the last M correctly. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Looks like you are using SAS's legacy Windowing Environment interface (aka Display Manager). I tried SAS's Enterprise Guide with your example and it displayed completely. I would not be too fussed about coding for VIEWTABLE peculiarities. Try it yourself in EG if you have it.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

Looks like you are using SAS's legacy Windowing Environment interface (aka Display Manager). I tried SAS's Enterprise Guide with your example and it displayed completely. I would not be too fussed about coding for VIEWTABLE peculiarities. Try it yourself in EG if you have it.

novinosrin
Tourmaline | Level 20

Hold your mouse on the right edge on the variable name and drag a bit. You'll see the complete display. Thanks!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 906 views
  • 1 like
  • 3 in conversation