The SAS Output Delivery System and reporting techniques

Supressing .rtf/.pdf files from opening

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 77
Accepted Solution

Supressing .rtf/.pdf files from opening

If I'm using a macro to create an identical report for 50 different programs, how can I stop all 50 .rtf files from opening when ods rtf close; occurs?

This is the ODS / PROC report code inside the macro:

OPTIONS NODATE NONUMBER;

ODS RTF FILE="C:\PROGRAM_PEER_CIP_ &CIP_NUMBER _RESULTS.RTF";

TITLE "Potential Peer Institutions for &CIP_NUMBER - &CIP_NAME";

title2 "&TOTAL_SELECTED out of &SAMPLE Selected using CAB AND Hanover Scoring Algorithm on CIP data";

PROC REPORT DATA=RESULTS PS=60 LS=110 MISSING SPLIT='\' NOWINDOWS;


run;

ODS RTF CLOSE;


We need run this for 50 CIPs and need each in it's own report. But we don't want/need everything to open automatically after the process is completed.


Accepted Solutions
Solution
‎01-17-2014 11:35 AM
Super User
Posts: 17,750

Re: Supressing .rtf/.pdf files from opening


All Replies
Solution
‎01-17-2014 11:35 AM
Super User
Posts: 17,750

Re: Supressing .rtf/.pdf files from opening

Frequent Contributor
Posts: 77

Re: Supressing .rtf/.pdf files from opening

Thank you, Reeza!

This appears to have worked (from the other thread): I changed the preferences in Tools>Options>Preferences>results and unchecked the "View results as they are generated" - it worked perfectly.

Super Contributor
Posts: 273

Re: Supressing .rtf/.pdf files from opening

Greg,

ods noresults;

ODS RTF FILE="C:\PROGRAM_PEER_CIP_ &CIP_NUMBER _RESULTS.RTF";

TITLE "Potential Peer Institutions for &CIP_NUMBER - &CIP_NAME";

title2 "&TOTAL_SELECTED out of &SAMPLE Selected using CAB AND Hanover Scoring Algorithm on CIP data";

PROC REPORT DATA=RESULTS PS=60 LS=110 MISSING SPLIT='\' NOWINDOWS;


run;

ODS RTF CLOSE;

ods results;

the reports are silently written.

i hope this way solves your needs too.

At the end, you open the report outside SAS.

Andre

Frequent Contributor
Posts: 77

Re: Supressing .rtf/.pdf files from opening

Thank you, Andre.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 2373 views
  • 4 likes
  • 3 in conversation