Statistical
PROC NLIN Example with Parameter Profiling and Bootstrap

This script illustrates the use of the NLIN procedure to perform non-linear regression, with advanced features for pa...

View code
Statistical
PROC NLIN Example: Parameter Estimation for a Nonlinear Model

This SAS script uses PROC NLIN to estimate the parameters of nonlinear models, including an enzymatic reaction model,...

View code
Statistical
Probit-Normal Model with PROC NLMIXED for Binomial Data

This SAS script is an example of using the NLMIXED procedure to fit a probit-normal model to binomial data, illustrat...

View code
Statistical
Example 3 PROC NLMIXED Documentation: Probit-Normal Model

Fitting a Probit-Normal model for ordinal data using PROC NLMIXED.

View code
Administration
Displaying SAS System Options

Displays the complete list of SAS system options and their current values in the log.

View code
Macro
Utility Macro _version and String Management

Script containing macro utilities for SAS version management and string handling.

View code
Tests
SAS Assertion Macros Test

This script contains calls to assertion macros, typically used in a unit testing framework to verify conditions and t...

View code
ETL
PG2 Course Data Generation

Script for creating multiple data tables (CLASS_*, EU_SPORTS, etc.) for the SAS PG2 course.

View code
Général
Sans titre

Utility macro to reset page numbering and clear windows in older environments.

View code
Macro
NEXT Graphic Configuration Macro

Macro defining global graphic options for the 'nxtcolor' device.

View code
Macro
NEXTLPR Printing Macro

Defines a macro to configure the SAS graphical environment for printing via the 'lpr' system command.

View code
ETL
Creation of the myLib.smallDataset table

Data generation script creating a table with numerical values and their formatted representation.

View code
Général
Sans titre

Script for dynamic creation of a physical directory and library assignment.

View code
Statistical
Analysis of Calcium Variability in Turnip Leaves

This SAS script analyzes the variability of calcium concentration in turnip leaves using the NESTED procedure, accord...

View code
Statistical
Automobile Model Reliability

This SAS script analyzes the reliability of different automobile models using the NESTED procedure.

View code
Test
Testing SAS Viya Job Execution and Management Macros

This SAS script is a unit test that validates the proper functioning of macros for creating, executing, awaiting comp...

View code
Administration
Orchestrating and Testing SAS Viya Job Flows

This SAS script demonstrates the creation, configuration, and execution of job flows in SAS Viya, including error han...

View code
Macro
mv_jobflow macro test for task orchestration

This SAS script is a comprehensive test case for the `mv_jobflow` macro, a task orchestration tool. It demonstrates d...

View code
Macro
Macro Variable Existence Check with Scope

Checks the existence of a SAS macro variable, optionally limiting the search to a specific scope.

View code
Macro
Cross-Platform Code Retrieval Macro

Generic macro to retrieve SAS code (Viya jobs, SAS 9 stored processes, or SASjs programs) based on the detected execu...

View code
Général
Sans titre

This script tests the creation and operation of a web service named `sendObj` using the `mx_createwebservice` and `mx...

View code
Macro
Hello World with Macro Variable

Introductory script displaying a personalized message in the SAS log.

View code
ETL
Korean Fiscal Data Extraction and Parsing via API

Script retrieving financial data from the Open Fiscal Data API (Korea) via HTTP requests, followed by manual parsing ...

View code
Utility
Cross-Platform Binary File Copy

SAS macro to copy any file byte by byte using binary input/output streams, offering an operating system independent c...

View code
System Utility
Macro mp_gitstatus: Retrieving the status of a Git repository

SAS macro that queries a local Git repository to list modified files and their statuses, and stores the result in a S...

View code
Macro
SAS Viya Job Code Retrieval Test

Unit test script validating the creation of a SAS Job and the retrieval of its source code using utility macros.

View code
Statistical
Mean_Abs_Deviation Macro

SAS macro to calculate the Mean Absolute Deviation from a financial returns dataset.

View code
Macro
Macro makehash - Hash Object Initialization

In-datastep utility macro to quickly initialize and configure a SAS Hash object.

View code
Macro
Macro Maxlengths - Calculation of String Lengths

Utility macro to determine the actual maximum data length contained in character variables of a SAS table.

View code
Statistics
Nonlinear Poisson Regression Random-Effects Model (MCMCEX8)

SAS Sample Library example (MCMCEX8) demonstrating fitting a nonlinear mixed-effects Poisson model.

View code
Macro
Company Name Resolution Macro

Macro displaying the full name of a company based on its abbreviation.

View code
Macro
WHEROBS Macro - Filtered Observation Count

SAS macro to count the number of observations in a table by applying an optional WHERE filter.

View code
Macro
Dynamic Recursive Execution of SAS Files

Macro to include and execute all SAS programs located in a directory and its subdirectories.

View code
Macro
Directory Inspection using SAS Macro Functions

Macro script to list and count files in a given directory.

View code
Macro
Listvar Macro: Extracting and Sorting Variable Metadata

Utility macro to list SAS table variables and create an output table containing their metadata sorted by position.

View code
Statistical
PROC LOESS Introduction Example: Melanoma Incidences

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 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