| Valid in: | Anywhere |
| Category: | ODS: SAS Formatted |
The following actions are available for the ODS OUTPUT statement:
Univariate.City_Pop_90.TestsForLocationThen the partial paths are as follows:
City_Pop_90.TestsForLocation Tests For Location
"The UNIVARIATE Procedure"."CityPop_90"."Tests For Location"Then the partial label paths are as follows:
>"CityPop_90"."Tests For Location" "Tests For Location"</
test as data-set and you create three data sets, then
ODS names the first data set test.
The additional data sets are named test1 and test2.
may5 as data-set and you create
three data sets, then ODS names the first data set may5. The additional data sets are named may6 and may7.
| Features: |
ODS _ALL_ CLOSE statement
ODS LISTING statement:: CLOSE ODS OUTPUT statement |
| Other features: |
PROC FORMAT PROC PRINT PROC TABULATE KEEP= data set option |
| Data set: | Energy |
proc format;
value regfmt 1='Northeast'
2='South'
3='Midwest'
4='West';
value divfmt 1='New England'
2='Middle Atlantic'
3='Mountain'
4='Pacific';
value usetype 1='Residential Customers'
2='Business Customers';
run;
ods output Table=energyoutput(keep=region division type expenditures_sum);
ods html body='your_body_file.html' frame='your_frame_file.html' contents='your_contents_file.html' page='your_page_file.html';
proc tabulate data=energy format=dollar12.;
by region;
class division type;
var expenditures;
table division,
type*expenditures;
format region regfmt. division divfmt. type usetype.; title 'Energy Expenditures for Each Region'; title2 '(millions of dollars)'; run;
ods html path='../ods'(url=none)
body='odsoutput-printbody.htm';
ods html body='your_body_file_2.html';
proc print data=energyoutput noobs; title 'Combined Output Data Set'; run;
ods _all_ close; ods HTML;
proc format;
value regfmt 1='Northeast'
2='South'
3='Midwest'
4='West';
value divfmt 1='New England'
2='Middle Atlantic'
3='Mountain'
4='Pacific';
value usetype 1='Residential Customers'
2='Business Customers';
run;ods html body='your_body_file.html' frame='your_frame_file.html' contents='your_contents_file.html' page='your_page_file.html';
proc tabulate data=energy format=dollar12.;
by region;
class division type;
var expenditures;
table division,
type*expenditures;format region regfmt. division divfmt. type usetype.; title 'Energy Expenditures for Each Region'; title2 '(millions of dollars)'; run;
| Features: |
ODS OUTPUT statement ODS SELECT statement |
| Other features: |
PROC GLM PROC PRINT PROC REG |
| Data set: | Iron |
options nodate pageno=1 pagesize=60 linesize=72;
ods html body='parameter-estimates-body.htm'
frame='parameter-estimates-frame.htm'
contents='parameter-estimates-contents.htm';
ods select ParameterEstimates(persist);
ods output ParameterEstimates(persist=proc)=IronParameterEstimates;
proc reg data=iron; model loss=fe; title 'Parameter Estimate from PROC REG'; run; quit; proc glm data=iron; model loss=fe; title 'Parameter Estimate from PROC GLM'; run; quit;
ods select all;
proc print data=IronParameterEstimates noobs; title 'PROC PRINT Report of the Data set from PROC REG'; run;
ods _all_ close; ods html;
ods html body='parameter-estimates-body.htm'
frame='parameter-estimates-frame.htm'
contents='parameter-estimates-contents.htm';proc reg data=iron; model loss=fe; title 'Parameter Estimate from PROC REG'; run; quit; proc glm data=iron; model loss=fe; title 'Parameter Estimate from PROC GLM'; run; quit;
proc print data=IronParameterEstimates noobs; title 'PROC PRINT Report of the Data set from PROC REG'; run;
| Features: |
ODS HTML statement options:: BODY= ODS LISTING ODS OUTPUT statement:: MATCH_ALL ODS TRACE statement |
| Other features: |
PROC PRINT PROC REG |
| Data set: | Model |
ods output SelectionSummary(match_all=list) = summary; title1 'Using the MATCH_ALL Option Produces Two Data Sets With Different Columns';
ods trace on;
proc reg data=model;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=forward
sle=.5 maxstep=3;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=backward
sls=0.05 maxstep=3;
run;
ods trace off;
title2 'The First Data Set Has the VARENTERED Column'; proc print data=summary; run; title1; title2 'The Second Data Set Has the VARREMOVED Column'; proc print data=summary1; run;
data summarym; set &list; run;
title1; title2 'The Merged Data Set Has Both Columns'; proc print data=summarym; run;
ods output SelectionSummary(match_all=list) = summary; title1 'Using the MATCH_ALL Option Produces Two Data Sets With Different Columns';
ods trace on;
proc reg data=model;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=forward
sle=.5 maxstep=3;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=backward
sls=0.05 maxstep=3;
run;
ods trace off;title2 'The First Data Set Has the VARENTERED Column'; proc print data=summary; run; title1; title2 'The Second Data Set Has the VARREMOVED Column'; proc print data=summary1; run;
ods output SelectionSummary=summary;
title1 'Without the MATCH_ALL Option, ODS Produces a Single Data Set With All
Of the Columns';
ods trace on;
proc reg data=model;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=forward
sle=.5 maxstep=3;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=backward
sls=0.05 maxstep=3;
run;
ods trace off;
proc print data=summary; run;
ods output SelectionSummary=summary;
title1 'Without the MATCH_ALL Option, ODS Produces a Single Data Set With All
Of the Columns';ods trace on;
proc reg data=model;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=forward
sle=.5 maxstep=3;
model r33=a b r4 r8 c d e r23 r24 r29/ selection=backward
sls=0.05 maxstep=3;
run;
ods trace off;