Published on :
Macro SASHELP_ET_CREATION_INTERNE

Using the Macro Facility to Generate CAS DATA Step Code

This code is also available in: Deutsch Español Français
The example demonstrates the creation of a SAS© macro named %LOAD that takes a list of table names as a parameter. For each table provided, the macro generates a DATA step that reads the specified CAS table (via the MYCAS libref) and creates a corresponding SAS© table (via the MYSAS libref). This is particularly useful for automating the process of converting or copying many tables between the CAS environment and the local SAS© environment.
Data Analysis

Type : SASHELP_ET_CREATION_INTERNE


Initial examples load datasets from the SASHELP library (CLASS, CARS, AIR) into CAS tables. The generated examples can use these CAS tables or create new ones via DATA Steps with DATALINES.

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.
Copyright Info : Copyright © SAS Institute Inc. All Rights Reserved.