Attention : This code requires administrator privileges.
This macro defines an HTML output file in a temporary directory (via external macros %AHGtempdir and %AHGrdm). It uses ODS HTML to encapsulate the execution of the %AHGreportby macro, then closes the ODS destination. Finally, it executes the 'start' system command (Windows-specific) to open the generated file.
Data Analysis
Type : EXTERNE
Data is provided via the &dsn macro parameter.
1 Code Block
MACRO
Explanation : Macro definition. File path calculation, ODS opening, call to the underlying reporting macro, ODS closing, and system command for file opening.
Copied!
%macro AHGhtml(dsn,option=label);
%local html;
%let html=%sysfunc(compress(%AHGtempdir%str(\)%AHGrdm.HTML));
ods html file="&html";
%AHGreportby(&dsn,0,which=,whichlength=,sort=0,groupby=0,groupto=0,topline=,showby=0,option=nowd,labelopt=%str( ;));
ods html close;
x "start &html";
%mend;
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.