This script is structured as a Stored Process using the %stpbegin and %stpend macros for ODS output management. It executes a PRINT procedure to display data from a table located in the standard SASHELP library, with the table name determined by the &table macro variable.
Data Analysis
Type : SASHELP
Data comes from the SASHELP library. The specific table name is expected via the &table macro variable.
1 Code Block
PROC PRINT
Explanation : Initializes the report session via %stpbegin, dynamically prints the specified table from SASHELP, and closes the session via %stpend.
Copied!
%stpbegin ;
proc print data=sashelp.&table ;
run ;
%stpend ;
1
%stpbegin ;
2
PROC PRINTDATA=sashelp.&TABLE ;
3
RUN ;
4
%stpend ;
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.