Comprehensive example illustrating the use of the LOESS procedure to analyze time series data (melanoma incidences) w...
View code
Statistical
Example 5 PROC LOGISTIC - Stratified Sampling
Illustration of the PEVENT= option to process data from stratified sampling (e.g., case-control) and correct prevalen...
View code
Macro
Autocall Macros Configuration and Testing
Script illustrating the definition of local macros, modifying the macro search path (sasautos), and calling macros.
View code
Data Management
Sans titre
Calculation of time differences and date incrementation.
View code
Data Management
SAS Date Management and Formatting
Example of manipulating internal dates and their formatting.
View code
ETL
Direct data reading with index (KEY=)
Demonstration of using the KEY= option in the SET statement for indexed reading.
View code
ETL
Creation of Metadata for Laboratory Variables
This SAS script creates a metadata dataset named 'lb_meta' containing attributes (name, type, length, label) for labo...
View code
Statistics
Getting Started Example for PROC LIFETEST
Example script demonstrating basic survival analysis with the LIFETEST procedure, including data creation and graph g...
View code
Statistical
Example 1 for the EFFECTPLOT Statement
Example of response surface analysis (Saddle Surface) using PROC ORTHOREG and the EFFECTPLOT statement for visualizat...
View code
Général
Sans titre
Demonstration of using the IFN function compared to classical IF-THEN/ELSE conditional logic.
View code
Macro
Using the IN operator and MINDELIMITER in SAS macros
Example of using the IN operator in a macro with a custom delimiter.
View code
Statistical
Example 6 for PROC GLM - Romano-British Pottery
This SAS script performs a multivariate analysis of variance (MANOVA) on chemical composition data of Romano-British ...
View code
Statistical
Example 9 for PROC GLM: Doubly Multivariate Repeated Measures Analysis
Analysis of a doubly multivariate repeated measures experimental design using PROC GLM.
View code
Macro
Macro hasvarsc - Checking for presence of character variables
Macro function that returns true (1) if a dataset contains all character variables specified in a given list.
View code
Macro
Macro-Variable Manipulation and Arithmetic Operations
Example of using the %LET and %PUT macro statements to define variables and display results.
View code
Derniers codes ajoutés
Boost Performance & Security: Creating Composite Indexes and Passwords with PROC DATASETS
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
SAS Data Step Efficiency: When to Use Explicit OUTPUT vs. Implicit Rules
Writes the current observation to a SAS dataset.
Data ManipulationCAS
Stop Struggling with Data Ingestion: Efficiently Move CSVs to Memory with 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
Beyond the WORK Library: Mastering the 4 Default SAS Libraries You Must Know
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
Seamless Integration: How to Attach Data Step Outputs Directly to SAS Viya Jobs
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
From SAS 9 to Viya: The Ultimate Guide to Migrating User-Defined Formats to CAS
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
Instant Performance Boost: Creating Indexes on the Fly with the INDEX= Data Set Option
Defines one or more indexes for a new output SAS data set.
Général
Stop Bloating Your Datasets: The Definitive Guide to Variable Selection with KEEP
Specifies variables to include in output SAS data sets.
ETLCAS
Combine and Conquer: Mixing Physical Paths and Existing Librefs in One LIBNAME Statement
Explains the concept of SAS library concatenation, allowing several libraries to be logically grouped under a single reference (libref).
Data Access
Stop Importing, Start Connecting: A Master Class in SAS/ACCESS Engines and SQL Pass-Through
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.