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!
data second;
input x y;
datalines;
1 2.3
2 3.4
3 4.5
4 6.6
5 8.9
run;
1
DATA second;
2
INPUT x y;
3
DATALINES;
4
12.3
5
23.4
6
34.5
7
46.6
8
58.9
9
RUN;
2 Code Block
PROC PRINT
Explanation : Displaying the content of the 'second' table in the standard output.
Copied!
proc print data second;
1
PROC PRINTDATA 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.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.