Published on :
Reporting CREATION_INTERNE

ExtJS HTML Page Generation via Stored Process

This code is also available in: Deutsch Español Français
This script is a Stored Process designed to be executed via the web. It uses a DATA _NULL_ step to directly write HTML and JavaScript code (calling the ExtJS 3.2.1 library) into the web output stream (_webout). The result is a web page presenting a column layout dynamically defined by client-side JavaScript.
Data Analysis

Type : CREATION_INTERNE


The entire output content (HTML and JavaScript) is contained within the script itself (in-stream data) via the cards4 instruction.

1 Code Block
DATA STEP
Explanation :
DATA step writing static HTML/JS content directly to the '_webout' file destination, which corresponds to the HTTP response stream in a Stored Process context.
Copied!
1DATA _null_ ;
2 file _webout ;
3 INPUT ;
4 put _infile_ ;
5cards4 ;
6
7
8...
9
10;;;;
11RUN ;
2 Code Block
MACRO CALL
Explanation :
Initialization and closure of the standard SAS Stored Process environment.
Copied!
1%let _result=streamfragment ;
2%STPBEGIN;
3*';*";*/;RUN;
4%STEND;
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.