BookmarkSubscribeRSS Feed
momi
Obsidian | Level 7

Hi,

How can I adjust the size of the regression output in lst or text file so that I have all solutions are lined up in one row?

 

This is what I have so far...

 

 

                              Solution for Random Effects

                                                       Std Err
Effect              Estimate       Pred     DF   t Value

A                      0.1081      0.01360   36E4      7.94
B                      0.02681    0.01810   36E4      1.48
C                      0.03403    0.01608   36E4      2.12

   
                              

Effect              Pr > |t|

A                           <.0001
B                            0.1387
C                            0.0344

 

I want the p-value output to be next to the t value.(below)

 

 

                          Solution for Random Effects

                                                       Std Err
Effect              Estimate       Pred     DF   t Value        Pr > |t|

A                      0.1081      0.01360   36E4      7.94    <.0001
B                      0.02681    0.01810   36E4      1.48    0.1387
C                      0.03403    0.01608   36E4      2.12       0.0344

   

Do I need to add some options in a SAS program? 

Thanks!

 

4 REPLIES 4
Reeza
Super User

I would recommend using a differetn output format. 

Excel or Word maybe?

 

By definition text/lst files don't align and have a concept of formatting so it needs to be done manually. Which is a pain. 

 

If you're on SAS 9.4 ODS EXCEL is a great option IMO.

momi
Obsidian | Level 7

I will find out about IMO option.

 

Thanks!!

ballardw
Super User

If you are using LIST output you may only need to change the linesize option.

Options linesize=132;

Before a procedure would set a maximum line size to 132 characters for example.

You can set a maximum of 256. Or permanently set the option.

 

From the appearance of your output I suspect your current linesize is set to the minimum of 64. You can check that by running this code:

Proc options option=linesize;run;

The log will show something like:

 LINESIZE=98       Specifies the line size for the SAS log and for SAS procedure output for the
                   LISTING destination.

only I suspect you'll see 64 where I have 98.

 

momi
Obsidian | Level 7

LINESIZE = 132 solved the problem!

 

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
  • 4 replies
  • 1393 views
  • 6 likes
  • 3 in conversation