BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Hi:

  The output in that example is the default LISTING output that goes to the Output window or a text file. To create that type of monospace output, just make sure that ODS LISTING is turned on. Or, you can get that look in a proportional spaced font by using the STYLE=JOURNAL option for HTML, RTF and PDF, as shown below:

proc_means_forum.png

 

Hope this helps,

Cynthia

View solution in original post

6 REPLIES 6
Cynthia_sas
Diamond | Level 26

Hi:

  The output in that example is the default LISTING output that goes to the Output window or a text file. To create that type of monospace output, just make sure that ODS LISTING is turned on. Or, you can get that look in a proportional spaced font by using the STYLE=JOURNAL option for HTML, RTF and PDF, as shown below:

proc_means_forum.png

 

Hope this helps,

Cynthia

Lulin
Fluorite | Level 6

Thanks! I am using SAS studio. It seems that ods listing has no effect on the output window.

Cynthia_sas
Diamond | Level 26

Hi:
ODS LISTING needs to be written to a file when you are using SAS Studio. It's not a default destination. If you were using Enterprise Guide, you'd still be able to turn LISTING on. Or Display Manager still has an OUTPUT window. But with Studio, you need to explicitly capture the output to a text file:

 
ODS LISTING FILE='/folders/myfolders/myoutput/means.txt';
proc means ...;
run;
ODS LISTING close;

Cynthia

Tom
Super User Tom
Super User

@Cynthia_sas wrote:
Hi:
ODS LISTING needs to be written to a file when you are using SAS Studio.
ODS LISTING FILE='/folders/myfolders/myoutput/means.txt';
proc means ...;
run;
ods listing close;

Cynthia

Is there anyway to get SAS/Studio updated to allow it to handle LISTING output destination?  There are many things where having a simple text output is better.

Cynthia_sas
Diamond | Level 26

Hi:

  I don't think so. Even in my single user copy of SAS Studio, I have to use FILE= and then open the file. With SAS Studio, I've just adjusted to using the default HTML output instead of LISTING.

Cynthia

Lulin
Fluorite | Level 6

Thanks! It's very helpful. Smiley Very Happy

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