Administration
Updating Windows Login Domains

This script searches for logins associated with a specific Windows domain and updates them by replacing the old domai...

View code
Général
Sans titre

Technique to modify the length of a character variable without altering the column order in the SAS table.

View code
Macro
Execution and Reporting Pilot Script (Chapter 8)

Orchestrator script that cleans the environment, loads a series of external SAS programs, and defines a reporting macro.

View code
ETL
Test of the LENGTH function

Simple demonstration of the LENGTH function's behavior on various character strings.

View code
Macro
Autocall Library Verification

Simple macro to verify the proper functioning of the autocall library by writing a message to the log window.

View code
Statistics
Multiple-Population Repeated Measures with PROC CATMOD

Analysis of categorical data with repeated measures across three distinct populations.

View code
Statistical
Example 7 for PROC CATMOD: Repeated Measures Analysis

Example of visual symmetry analysis (right eye vs. left eye) using PROC CATMOD to test marginal homogeneity on repeat...

View code
Statistical
Startup Example for PROC CATMOD - WLS Analysis of Mean Response

This SAS script demonstrates the use of PROC CATMOD for Weighted Least Squares (WLS) analysis of the mean response, a...

View code
Statistical
CATGS2 - Getting Started Example for PROC CATMOD

Example of using the CATMOD procedure to fit a generalized logits model to school survey data.

View code
Data Manipulation
CATX() Function Demonstration

This SAS script demonstrates the use of the CATX() function for variable concatenation, specifically its handling of ...

View code
ETL
Simplified String Concatenation

Demonstration of CATX function's efficiency for string concatenation compared to traditional methods.

View code
Utility
CDM Schema Validation

SAS macro to validate the compatibility of UDM and CDM schema versions.

View code
Statistical
Example Documentation for PROC CANDISC (Fisher's IRIS Data)

This SAS script performs a canonical discriminant analysis on Fisher's IRIS data, then visualizes the results of the ...

View code
Statistical
Example initiation for PROC CANDISC

This script performs a canonical discriminant analysis on fish measurement data (SASHELP.FISH) and generates a plot o...

View code
Macro
Macros for Canonical Naming and Versioning Management

Script defining utility macros for normalizing names via handlers and checking SAS version.

View code
Macro
Case Replacement Macro

Function-style macro to force the case of a specific substring within a source string.

View code
Macro
CAT Macro: Concatenation of Variable Values

This SAS macro concatenates the values of a list of variables into a single output variable, using a specified separa...

View code
Statistics
Categorical Data Analysis with PROC CATMOD - Example 11

Example illustrating model fitting and obtaining predicted probabilities for subpopulations.

View code
Statistical
Logistic Regression with PROC CATMOD (Example 3)

Standard example from the SAS/STAT library illustrating maximum likelihood logistic regression on experimental ingot ...

View code
Statistical
Example 4 for PROC CATMOD: Log-Linear Model

Survival analysis of plant cuttings using a log-linear model with PROC CATMOD, based on Bartlett's data.

View code
Statistical
PROC CALIS Documentation Example

This script illustrates the use of PROC CALIS for structural equation modeling analysis, particularly the COVPATTERN ...

View code
Statistical
Path Analysis and Regression with CALIS and REG

This SAS script illustrates the use of CALIS and REG procedures for data analysis, with internal data creation via a ...

View code
Statistical
Documentation Example 15 for PROC CALIS - Factor Analysis with Missing Data

Example of confirmatory factor analysis using PROC CALIS with missing data handling.

View code
Statistical
PROC CALIS Documentation Example 16

This SAS script demonstrates the use of the CALIS procedure for factor analysis, particularly with the handling of mi...

View code
Macro
Macro for dynamic macro re-execution with dataset parameters

This macro allows repeated execution of another macro by passing parameters dynamically read from a dataset. It overc...

View code
Reporting
Call for Report Generation

This SAS script defines and executes a `call_create_report` macro that prepares the necessary parameters (report ID, ...

View code
Statistical
Canonical Correlation Analysis (CANCOEX1)

This SAS script performs a canonical correlation analysis on physiological measurements and physical exercise data. I...

View code
Statistical
Canonical Correlation Analysis with PROC CANCORR

This SAS script demonstrates the use of PROC CANCORR to perform a canonical correlation analysis between two sets of ...

View code
Statistical
Example Documentation 1 for PROC CAUSALGRAPH

Example of graphical causal models (DAG) analysis to identify causal effects.

View code
Statistical
Documentation Example 4 for PROC CAUSALGRAPH

This SAS script illustrates the use of PROC CAUSALGRAPH to define and analyze graphical causal models based on specif...

View code
Statistical
Example Documentation 6 for PROC CAUSALGRAPH

This SAS script demonstrates the use of the CAUSALGRAPH procedure to define, analyze, and identify causal effects in ...

View code
Statistical
Example 1 for PROC CAUSALGRAPH

Demonstration of the CAUSALGRAPH procedure to specify a causal graphical model and identify causal effects between va...

View code
Statistical
Covariance Matrix Equality Test with PROC CALIS

This SAS script uses the CALIS procedure to test the equality of covariance matrices between two groups, 'Expert' and...

View code
Statistical
Example of PROC CALIS for Covariance Estimation

This SAS script illustrates the use of PROC CALIS for covariance structure analysis, using internally created data.

View code
Statistical
Example documentation for PROC CALIS

This SAS script is an example of using the CALIS procedure for mean and covariance structure analysis on an internal ...

View code
Statistical
Example Documentation 3 for PROC CALIS

This SAS script demonstrates the use of PROC CALIS for analyzing non-correlation models on sales data.

View code
Statistical
Sphericity Test with PROC CALIS (Example 4)

SAS documentation example (CALEX105) illustrating the use of the CALIS procedure to test covariance models.

View code
Macro
Documentation Automation with Code Diary

Configuration and execution script to generate SAS project documentation in Markdown and HTML format.

View code
Macro
Graphic Shape Drawing Macros (Brackets, Arcs, Lines)

This SAS script defines three utility macros (%bracket, %arcpie, %line) to facilitate the drawing of basic graphic sh...

View code
Reporting
Bubble Plot Generation with SGPLOT

This SAS script generates a bubble plot using PROC SGPLOT. Source data is created directly within the script via a DA...

View code
Reporting
3D Bubble Plot Generation

This SAS script generates a 3D Bubble Plot using the SGPLOT procedure. The data is created directly within the script...

View code
Chart
Bubble Chart with Transparency

Generation of a transparent bubble chart with ODS SGPLOT.

View code
Macro
Test macro with log display

Defines a simple macro that writes the value of its parameter to the SAS log and configures log display options.

View code
Macro
Remove the last BY title and store it in a macro variable

Macro to remove the last title if it's a title generated by a 'BY' clause and store its content in the global macro v...

View code
Statistical
Conjoint Analysis of Chocolates (BCHOICE)

This SAS script performs a conjoint analysis of a set of chocolates using the BCHOICE procedure to fit a simple logit...

View code
Macro
Deletion of macro variables and macros

Macro for deleting macro variables (potentially macro variable arrays) and, optionally, compiled macros from the WORK...

View code
Statistics
Multinomial Generalized Logit Modeling with PROC BGLIMM

Example of using the BGLIMM procedure to fit a multinomial generalized logit model on nominal response data.

View code
Statistical
Example 8 PROC BGLIMM: Using Power Prior

Illustration of using the BGLIMM procedure to incorporate historical data via the 'Power Priors' method.

View code
Statistical
Analysis of Eye and Hair Color Frequency by Region

This SAS script creates a 'Color' dataset from embedded data (datalines) and then performs several frequency analyses...

View code
Macro
Macro boxanno - Scatter plot annotation with box plots

Set of macros (boxaxis and boxanno) to create annotation datasets for adding univariate box plots to the axes of a sc...

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 Manipulation CAS
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.
ETL CAS
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.
Tools CAS
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.
ETL CAS
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.
Data Access