Published on :
Reporting CREATION_INTERNE

Simple HTML Stream Generation via Data Step

This code is also available in: Deutsch Français
Awaiting validation
This script demonstrates how to use a DATA _NULL_ step to write raw HTML code to the standard web output (_webout). This method is used in SAS© Stored Processes or SAS© Job Execution services to create custom interfaces or reports without using ODS. The comment mentions the importance of the '_output_type = HTML' parameter.
Data Analysis

Type : CREATION_INTERNE


The content (HTML) is statically generated via PUT statements.

1 Code Block
DATA STEP Data
Explanation :
Uses the DATA _NULL_ step to write HTML character strings directly to the '_webout' fileref, which corresponds to the HTTP output stream to the client.
Copied!
1DATA _null_;
2file _webout;
3 put '<head><title>Hello World!</title></head>';
4 put '<body>';
5 put '<h1>Hello World!</h1>';
6 put '</body>';
7 put '</html>';
8 put '<html>';
9RUN;
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.