- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I need to create a figure with pearson correlation value, I use proc sgplot to create the figure;
so firstly I open the ods:
ods graphics / reset noborder width=800px height=370px attrpriority=none;
options orientation=landscape;
ods rtf file="xxxx" style=tjournal BODYTITLE_AUX nogtitle nogfootnote;
Then I compute the corr:
ODS select none;
proc corr data=forplot1(where=(_name_='UNCOST'));
var lborresn COL1;
ods output pearsoncorr=corruncost;
run;
ODS select all;
my question is why I still get corr procedure in my output, since I used ods select none.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Anything that creates output between and ODS Destination; Ods destination close; sandwich of statements will appear in the document created. You have to explicitly state the destination to avoid sending the output: Ods rtf select none;
The default results window destination is the destination if not explicitly stated.
I generally do all the data manipulation first then only include the procedures that create the output I want in the "sandwich".
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply. It's very helpful. I will finish the data manipulation first next time.