Examples use generated data (datalines) or SASHELP.
1 Code Block
PROC CASUTIL Data
Explanation : This code initializes a CAS session and a CAS libname. It then loads the 'sashelp.cars' dataset into CAS memory under the name 'cars'. The PARTITION statement filters the 'cars' table to include only cars with an MSRP (Manufacturer's Suggested Retail Price) greater than 90,000 and whose Make is 'Porsche', storing the result in a new table 'carsWhere'. Finally, the ALTERTABLE statement modifies 'carsWhere' to retain only the 'make', 'model', and 'MSRP' columns. The result is then displayed using PROC PRINT.
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.