Examples use generated data (datalines) or SASHELP.
1 Code Block
DATA STEP / PROC PRINT Data
Explanation : This example initializes a CAS session, defines a CAS library named 'mycas', then creates an in-memory table 'sample_data' using a DATA step with embedded data (DATALINES). Finally, the PROC PRINT procedure is used to display the content of the 'mycas.sample_data' table, demonstrating the execution of the DATA step and procedures on the CAS server.
Copied!
CAS;
LIBNAME mycas CAS;
DATA mycas.sample_data;
INPUT id $ value;
DATALINES;
A 10
B 20
C 30
;
RUN;
PROC PRINT DATA=mycas.sample_data;
TITLE 'Exemple de données sur CAS';
RUN;
QUIT;
1
CAS;
2
LIBNAME mycas CAS;
3
4
DATA mycas.sample_data;
5
INPUT id $ value;
6
DATALINES;
7
A 10
8
B 20
9
C 30
10
;
11
RUN;
12
13
PROC PRINTDATA=mycas.sample_data;
14
TITLE 'Exemple de données sur CAS';
15
RUN;
16
QUIT;
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.