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.
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.
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.
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.
Hold your mouse on the right edge on the variable name and drag a bit. You'll see the complete display. Thanks!
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!
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.
Ready to level-up your skills? Choose your own adventure.