I wonder if I can customize the output style like that in the SAS documentation below.
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:
Hope this helps,
Cynthia
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:
Hope this helps,
Cynthia
Thanks! I am using SAS studio. It seems that ods listing has no effect on the output window.
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
@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.
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
Thanks! It's very helpful.
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!
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.
Ready to level-up your skills? Choose your own adventure.