BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
joeisen
Fluorite | Level 6

In SAS Studio, after running a Data step, the resulting dataset is displayed under the OUTPUT DATA tab. In the default setting of showing column names instead of labels, character variable columns are the width of the variable (great!). Numeric variable columns are super wide (not great). This means I always have to scroll horizontally to see more than a few columns at a time. 

 

Can I make these columns output to a narrower width? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

I don't think so.  It does adjust based on the FORMAT attached to the variable.  So if you format the numbers to be displayed with fewer characters then the columns might take less space.

 

At least there does seem to be an impact when running this code.

data class1; 
  set sashelp.class;
run;

data class2; 
  set sashelp.class;
  format age 3. height weight 5.1 ;
run;

Tom_0-1667787613857.png

Tom_1-1667787634159.png

 

 

Otherwise just make a REPORT that displays the data in the way you want instead of trying to use SAS/Studio to look at the actual dataset.

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

I don't think so.  It does adjust based on the FORMAT attached to the variable.  So if you format the numbers to be displayed with fewer characters then the columns might take less space.

 

At least there does seem to be an impact when running this code.

data class1; 
  set sashelp.class;
run;

data class2; 
  set sashelp.class;
  format age 3. height weight 5.1 ;
run;

Tom_0-1667787613857.png

Tom_1-1667787634159.png

 

 

Otherwise just make a REPORT that displays the data in the way you want instead of trying to use SAS/Studio to look at the actual dataset.

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

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 1112 views
  • 0 likes
  • 2 in conversation