Published on :
Reporting SASHELP

Dynamic Printing of a SASHELP Table

This code is also available in: Deutsch Español Français
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!
1%stpbegin ;
2PROC PRINT DATA=sashelp.&TABLE ;
3RUN ;
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.