The macro does not create data by itself. It is designed to read and display a dataset that must exist at the time of its execution. This dataset can come from any source (internal creation, SASHELP libname, external source) and must be specified via the `data` parameter or be the last active dataset.
1 Code Block
PROC PRINT
Explanation : This block defines the `AHGdisplayprint` macro. It uses a `%if %length(&data)` statement to conditionally add the `data=` parameter to `PROC PRINT`. If the macro is called without a parameter (`%AHGdisplayprint()`), `PROC PRINT` will execute on the last created dataset. Otherwise, it will execute on the dataset passed as a parameter.
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.
Copyright Info : A Revision Control System (RCS) header was detected, indicating the author, revision date, and modification history. Author: liux43, Date: 2010/04/19.
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.