Published on :
Data Processing CREATION_INTERNE

DATA Step

This code is also available in: Deutsch Español English Français
Awaiting validation
In SAS© Viya, the DATA step can operate on the CAS server in Symmetric Multiprocessing (SMP) or Massively Parallel Processing (MPP) mode, by default utilizing multithreading to execute the same program across multiple nodes. The use of in-memory CAS tables offers significant execution speeds. It is important to note that certain restrictions apply to language elements and the VARCHAR data type when executing on CAS. The BY statement, when used with the DATA step on CAS, ensures that groups of rows sharing the same BY variables remain intact and are processed together on a single machine. Some DATA step language elements from earlier SAS© versions may not be suitable for distributed processing in the CAS environment.
Data Analysis

Type : CREATION_INTERNE


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!
1CAS;
2LIBNAME mycas CAS;
3 
4DATA mycas.sample_data;
5 INPUT id $ value;
6 DATALINES;
7A 10
8B 20
9C 30
10;
11RUN;
12 
13PROC PRINT DATA=mycas.sample_data;
14 TITLE 'Exemple de données sur CAS';
15RUN;
16QUIT;
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.