Published on :
Reporting CREATION_INTERNE

Creation and printing of simple data

This code is also available in: Deutsch English Español Français
Awaiting validation
This script illustrates the creation of a SAS© table named 'second' using a DATA step and the DATALINES statement for direct data insertion. It concludes by displaying this data via the PRINT procedure.
Data Analysis

Type : CREATION_INTERNE


The data is hardcoded in the script via the DATALINES section.

1 Code Block
DATA STEP Data
Explanation :
Creation of the temporary table 'second' with two numeric variables x and y.
Copied!
1DATA second;
2INPUT x y;
3DATALINES;
41 2.3
52 3.4
63 4.5
74 6.6
85 8.9
9RUN;
2 Code Block
PROC PRINT
Explanation :
Displaying the content of the 'second' table in the standard output.
Copied!
1PROC PRINT DATA second;
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.