Examples are not provided directly in the documentation. The documentation is descriptive, listing data types and their compatibility.
1 Code Block
DATA STEP Data
Explanation : This example illustrates the creation of a CAS table with INT32 data types for 'id', VARCHAR(50) for 'name', and DOUBLE for 'value'. It uses a DATA step to create the table with inline data, then loads it into CAS. The PROC CAS procedure is then used to display table information, including column data types, to verify that the specified types are correctly applied on the CAS server.
Copied!
/* Exemple hypothétique basé sur la documentation */
/* La documentation ne fournit pas d'exemples directs, il s'agit d'une illustration */
data casuser.my_data;
length id int32 name varchar(50) value double;
input id name $ value;
datalines;
1 John_Doe 123.45
2 Jane_Smith 67.89
;
run;
proc cas;
loadactionset "table";
table.tableinfo result=r / caslib="casuser" name="my_data";
print r;
quit;
1
/* Exemple hypothétique basé sur la documentation */
2
/* La documentation ne fournit pas d'exemples directs, il s'agit d'une illustration */
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.