The code begins by listing the content of the SASHELP.FISH system table. Then, it defines a local library 'edulib', creates a table 'mtcars' with hardcoded data (CARDS) in it, and displays the result.
Data Analysis
Type : MIXTE
Data from the SASHELP system library and manually entered data (CARDS) in the Data Step.
1 Code Block
PROC PRINT
Explanation : Displays the data from the SASHELP.fish table on the screen.
Copied!
proc print data=SASHELP.fish;
run;
1
PROC PRINTDATA=SASHELP.fish;
2
RUN;
2 Code Block
DATA STEP Data
Explanation : Defines the 'edulib' library pointing to a local folder, then creates the 'edulib.mtcars' table by loading raw data included in the code.
Explanation : Verifies data creation by displaying the content of the 'edulib.mtcars' table.
Copied!
proc print data=edulib.mtcars;
run;
1
PROC PRINTDATA=edulib.mtcars;
2
RUN;
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.