Hi,
I'm using SAS 9.4 (purchased software) for the first time in my life after years of using SAS Studio -- onDemand for Academics.
I used the following general code in *both* SAS 9.4 & SAS Studio.
proc format
library=lookup
cntlin=work.formatlibdm
fmtlib;
run;
This is the visually awesome, nice output I get from SAS Studio ODA:
I used the *SAME* code on a paid, desktop version of SAS 9.4 (SAS 9.4 TS Level 1MR) [Caveat: slightly differently named variables in this output].
I get this EXTREMELY clunky, hard-to-read output that is not functional at all because I have to refer to these formats in future programs:
How do I configure the desktop version to output nicer listing outputs (just
like the one in SAS Studio with proper borders/demarcations/no unneeded
underscores)?
Thank you guys for all your help; I appreciate it so much 😁!
Hi @anonymous_user,
It looks like you're using the ODS Listing destination in both cases, but with different fonts and possibly different settings of the FORMCHAR system option. (As mentioned by Ksharp, ODS HTML output would look quite different.)
If you want to stick to the Listing output (which is my favorite ODS destination), changing the font (via Tools → Options → Fonts... from the Output window) to Sasfont or SAS Monospace should improve the output with the default FORMCHAR characters
options formchar='‚ƒ„…†‡ˆ‰Š‹Œ+=|-/\<>*';
(note that these look very different in the relevant SAS fonts).
The second best option: Using
options formchar='|----|+|---+=|-/\<>*';
should work with your current font and many other common fonts. It's also what you've used in your SAS Studio session.
Hi @anonymous_user,
It looks like you're using the ODS Listing destination in both cases, but with different fonts and possibly different settings of the FORMCHAR system option. (As mentioned by Ksharp, ODS HTML output would look quite different.)
If you want to stick to the Listing output (which is my favorite ODS destination), changing the font (via Tools → Options → Fonts... from the Output window) to Sasfont or SAS Monospace should improve the output with the default FORMCHAR characters
options formchar='‚ƒ„…†‡ˆ‰Š‹Œ+=|-/\<>*';
(note that these look very different in the relevant SAS fonts).
The second best option: Using
options formchar='|----|+|---+=|-/\<>*';
should work with your current font and many other common fonts. It's also what you've used in your SAS Studio session.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.