Published on :
ETL CREATION_INTERNE

Creation and Display of Internal Data

This code is also available in: Deutsch Español Français
Awaiting validation
This program initializes a temporary SAS© table named 'instream_mtcars'. Data is read directly from the standard input stream using the CARDS statement (datalines). Specific formats and informats are applied to the variables. Finally, the PRINT procedure is used to render the data in the output report.
Data Analysis

Type : CREATION_INTERNE


Data is hardcoded in the script via the CARDS statement.

1 Code Block
DATA STEP Data
Explanation :
Creation of the 'instream_mtcars' table with metadata definition (informat/format) and raw data loading.
Copied!
1/*Code for basic SAS exceution*/
2* This is our first SAS code;
3DATA instream_mtcars;
4informat cars$12.;
5INPUT cars$ mpg cyl disp hp drat;/*Variable*/
6/*Observation*/
7FORMAT cars$6. drat 4.3;
8CARDS;
9Mercedes_AMG 21 6 160 110 3.1167
10BMW_X1_AUT0 22.8 4 108 93 3.85
11;
12RUN;
2 Code Block
PROC PRINT
Explanation :
Simple display of the content of the 'instream_mtcars' dataset.
Copied!
1PROC PRINT DATA=instream_mtcars;
2RUN;
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.