Published on :
ETL SASHELP

SASHELP data analysis and display

This code is also available in: Deutsch Español Français
The script uses a `DATA STEP` with the `_null_` option to prevent the creation of an output dataset. It iterates over each observation of the `sashelp.prdsale` dataset. For each observation, the values of the variables `actual-numeric-month` (representing a numeric range) and `country-character-product` (representing a character range) are written directly to the SAS© log using the `PUT` statement.
Data Analysis

Type : SASHELP


The script uses the `sashelp.prdsale` dataset, which is a standard example dataset provided with SAS and accessible without additional configuration.

1 Code Block
DATA STEP
Explanation :
This code block is a `DATA STEP` that does not create a permanent dataset (indicated by `_null_`). It reads the `sashelp.prdsale` dataset. The `PUT` statements display the current values of the `actual-numeric-month` and `country-character-product` variables for each observation in the SAS log. This is useful for quick data inspection without generating structured output.
Copied!
1DATA _null_ ;
2 SET sashelp.prdsale ;
3 put actual-numeric-month ;
4 put country-character-product ;
5RUN ;
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.