BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Damien
Calcite | Level 5

Hi

I'm using SAS 9.4 and I create many different rtf document with a macro in SAS using ODS features.

But, after creating a rtf document on my hard drive, SAS automatically opened it. It quickly run out my memory. How can I switch off the automatic opening.

For example:

DATA CLASS;

     INPUT NAME $ 1-8 SEX $ 10 AGE 12-13 HEIGHT 15-16 WEIGHT 18-22;

CARDS;

JOHN    M  12 59 99.5

JAMES   M  12 57 83.0

ALFRED  M  14 69 112.5

ALICE   F  13 56 84.0

;

ods rtf file= "D:\TestSAS\OUT\_test.rtf" ;

PROC MEANS;

     VAR AGE HEIGHT WEIGHT;

PROC PLOT;

     PLOT WEIGHT*HEIGHT;

quit ;

ods rtf close ;

will automatically open the _test.rtf document in Microsoft word

Thank you for your help,

all the best,

Damien.

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26


Hi:

  Go to Tools --> Options --> Preferences ---> Results tab. On the Results Tab, look for the check box that says: "View results as they are generated" -- make sure that you clear the check mark that appears in that box. That should stop SAS from automatically launching Word when the RTF file has been generated.

cynthia

View solution in original post

1 REPLY 1
Cynthia_sas
Diamond | Level 26


Hi:

  Go to Tools --> Options --> Preferences ---> Results tab. On the Results Tab, look for the check box that says: "View results as they are generated" -- make sure that you clear the check mark that appears in that box. That should stop SAS from automatically launching Word when the RTF file has been generated.

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 5749 views
  • 1 like
  • 2 in conversation