Data Transformation and Restructuring with PROC TRANSPOSE
Educational example illustrating data transposition and variable renaming.
View code
Reporting
Demonstration of International Monetary Formats
Script illustrating the display of numerical values as currencies for different countries (United Kingdom, Japan, Aus...
View code
Général
Sans titre
This script lists active CAS sessions and exports the results to a local SAS table.
View code
Macro
CSV Export Macro (ex_csv)
Utility macro to export a SAS table to a CSV file via PROC EXPORT.
View code
Général
Sans titre
Script illustrating the use of loops and logical conditions within the definition of an ODS Tagset.
View code
Général
Sans titre
Utility macro for executing a SAS code snippet for each item in a defined list.
View code
ETL
Creation and Display of Internal Data
Basic script creating a dataset from manually entered lines and displaying the result.
View code
Macro
Exercise: Dynamic Creation of Macro Variables with PROC SQL
Training exercise aimed at creating a horizontal list of values in a macro variable using PROC SQL's INTO syntax.
View code
Macro
Dynamic creation of horizontal macro variable list
Script generating a list of values separated by a tilde (~) into a macro variable from a SAS table.
View code
Statistical
Correspondence Analysis: US Population 1920-1970
Example of simple correspondence analysis on US population data by region between 1920 and 1970.
View code
Général
Sans titre
Demonstration of substring extraction and data export via ODS.
View code
Export
Export CSV to Web Stream (_webout)
Generation of test data and direct export in CSV format to the web output stream.
View code
Statistical
CUSUM Macro - Recursive Residuals Analysis
SAS/IML routine calculating recursive residuals and their cumulative sums (CUSUM) to detect changes in regression par...
View code
ETL
Data Manipulation with LAG Functions
Script illustrating data creation, sorting, and the use of the LAG function to access previous observations.
View code
Administration
Deleting Users from Metadata
Program that deletes a defined list of users and their associated logins from the metadata server.
View code
Macro
Macro dirfp2sas: Listing Windows files to SAS table
Utility macro to list full file paths matching a given pattern into a SAS table.
View code
Reporting
Creating Composite Dashboards with ODS HTMLPANEL
Example of using the ODS HTMLPANEL tagset to create composite reports organizing graphs and tables in grids.
View code
Statistical
Data Simulation and Regression Analysis
This script generates a simulated dataset containing simple linear relationships, then performs several linear regres...
View code
Derniers codes ajoutés
Titre
Category
Voir
Modifying SAS Data Sets
This example illustrates the modification of two SAS data sets using the MODIFY statement and its sub-statements. It shows how to: modify SAS files, label a SAS data set, add a read password to a SAS data set, indicate the current sort order of a SAS data set, create an index for a SAS data set, assign informats and formats to variables, rename variables, and label variables in a SAS data set.
ETL
OUTPUT Statement
Writes the current observation to a SAS dataset.
ActionCAS
PROC CASUTIL
The CASUTIL procedure offers several table and caslib management functions, including displaying table metadata, deleting files, unloading and loading tables, promoting tables, and saving tables.
ETLCAS
Default SAS Libraries
This document describes the default SAS libraries: Work (temporary), User (user), Sashelp, and Sasuser. It explains their role and behavior within the SAS Viya 4 environment.
Data Access
SAS Viya Platform File Service
The SAS Viya Platform File Service allows storing, retrieving, and deleting files kept in the SAS Infrastructure Data Server database repository. This repository is not considered a complete 'file system' but contains individual files directly accessible by their file identifier (UUID).
Administration
User-Defined Formats
In the SAS Viya platform, you can store user-defined formats in catalogs for use in a SAS session, or you can store them in a format library on the CAS server. Format libraries are associated with a CAS session, or they can be promoted to global scope to be available to all CAS sessions. User-defined formats in a format library are server-side formats that the server uses when an analysis is performed based on formatted values. You can migrate existing user-defined formats from SAS to the SAS Viya platform.
ToolsCAS
Sans titre
Defines one or more indexes for a new output SAS data set.
Général
KEEP Statement
Specifies variables to include in output SAS data sets.
ETLCAS
SAS Library Concatenation
Explains the concept of SAS library concatenation, allowing several libraries to be logically grouped under a single reference (libref).
Data Access
Examples: Using a SAS Engine to Process External Data
This document provides examples of using SAS engines to access and process various types of external data, including delimited files, Excel files, databases (DBMS), XML, and JSON.
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.