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!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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