If you want to use the
Documents window
to select your output objects and to store your updated output, you
must create a new ODS document.
In a previous chapter,
you created an original ODS document. You can recall that ODS document.
proc sort data=sashelp.prdsale out=prdsale;
by Country;
run;
ods document name=work.prddocument(write);
proc tabulate data=prdsale;
class region division prodtype;
classlev region division prodtype;
var actual;
keyword all sum;
keylabel all='Total';
table (region all)*(division all),
(prodtype all)*(actual*f=dollar10.) /
misstext=[label='Missing']
box=[label='Region by Division and Type'];
title 'Actual Product Sales';
title2 '(millions of dollars)';
run;
proc univariate data=prdsale;
by Country;
var actual;
run;
title 'Sales Figures for First Quarter by Product';
proc sgpanel data=prdsale;
where quarter=1;
panelby product / novarname;
vbar region / response=predict;
vline region / response=actual lineattrs=GraphFit;
colaxis fitpolicy=thin;
rowaxis label='Sales';
run;
ods document close;
To create a new ODS
document, right-click the
Documents folder
at the top of the
Documents window, and then
select
New Document.
Creating a New ODS Document
In the
New
Document window, select a library in which to store the
new document, and enter a name for the document. Click
OK.
Naming a New ODS Document
Because you selected
the library Sasuser, your document is stored permanently.
New Empty Document PrdCustomContent
All output objects
are in the new document. Delete the PROC UNIVARIATE output objects
Basic Measures of Location and Variability and Tests For Location.
Right-click on an object, and select
Delete.
Delete Output Objects
Sasuser.Prdcustomcontent
now contains all of the output from PROC SGPANEL and PROC TABULATE.
The UNIVARIATE output now consists of only the Moments, Quantiles,
and Extreme Observations tables for Canada, Germany, and the United
States.
Completed New Document
Now that you have the
output that you want in the new document, you can re-create the output
with only the data that you want shown. Right-click
Sasuser.Prdcustomcontent,
and select
Replay. This will display your
output to any open destinations without rerunning the procedures.
Replay the New Document