DATA Step, Macro, Functions and more

Adjusting output size in text

Reply
Contributor
Posts: 24

Adjusting output size in text

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!

 

Super User
Posts: 19,855

Re: Adjusting output size in text

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.

Contributor
Posts: 24

Re: Adjusting output size in text

I will find out about IMO option.

 

Thanks!!

Super User
Posts: 11,343

Re: Adjusting output size in text

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.

 

Contributor
Posts: 24

Re: Adjusting output size in text

LINESIZE = 132 solved the problem!

 

Thanks!

Ask a Question
Discussion stats
  • 4 replies
  • 56 views
  • 6 likes
  • 3 in conversation