The script configures ODS to produce a two-column report, using the `sashelp.shoes` dataset. It displays the `region`, `stores`, and `sales` variables. The output type can be RTF, PDF, or PostScript, and the orientation is set to landscape.
Data Analysis
Type : SASHELP
The script uses the `sashelp.shoes` dataset, which is a standard SAS library available by default in all SAS installations.
1 Code Block
ODS / GOPTIONS
Explanation : This block initializes the parameters for the report output. It sets the ODS destination ('dest' as RTF by default, but can be PDF or PS), the number of columns ('cols' to 2), and the output file path. `goptions rotate=landscape` configures the page orientation to landscape.
Explanation : PROC PRINT is used to display data from the `sashelp.shoes` dataset. The `var` clause specifies that only the `region`, `stores`, and `sales` variables should be included in the report.
Copied!
proc print data=sashelp.shoes ;
var region stores sales ;
run ;
1
2
PROC PRINT
3
DATA=sashelp.shoes ;
4
var region stores sales ;
5
RUN ;
6
3 Code Block
ODS
Explanation : This block closes the previously opened ODS destination, which finalizes the report generation in the specified file.
Copied!
ods &dest close ;
1
ods &dest close ;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.