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!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 796 views
  • 1 like
  • 3 in conversation