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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 667 views
  • 0 likes
  • 2 in conversation