Published on :
Reporting SASHELP

Simple graph with PROC GPLOT

This code is also available in: Deutsch Español English Français
The SAS© code executes the `GPLOT` procedure to generate a two-dimensional graph. The `sashelp.class` dataset is specified as the source. The `plot weight*height;` statement indicates the creation of a scatter plot where 'weight' is plotted on the vertical axis and 'height' on the horizontal axis. The `run;` statement terminates the procedure. Although this is a simple visualization example, the associated comments suggest that it could be part of a larger workflow integrating pre-conditions (from IMP_PremiumsinLOBWorkComp), post-conditions (using httppost), and file configurations (via etl_config_job_param).
Data Analysis

Type : SASHELP


The script uses the standard `sashelp.class` dataset, which is provided with SAS and contains information about students, including weight and height. No unmanaged external data is required for the execution of this code block.

1 Code Block
PROC GPLOT
Explanation :
This block initiates the `GPLOT` graphical procedure. It specifies the `sashelp.class` dataset as the source and defines the `plot weight*height;` statement to create a scatter plot where 'weight' is on the Y-axis and 'height' is on the X-axis. The `run;` command executes the procedure and generates the graph.
Copied!
1 
2PROC GPLOT
3DATA=sashelp.class;
4plot weight*height;
5RUN;
6 
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.