Statistics
Statistical Power Analysis (GLM and T-test)

Script performing power analyses and sample size calculations. It first prepares a dataset, then uses PROC GLMPOWER f...

View code
Statistical
Variable Cardinality Analysis: Specific Levels

This script uses the CARDINALITY procedure to analyze the distribution of levels for a numeric or character variable,...

View code
Data Access
Netezza Data Connector

The Netezza data connector enables SAS Cloud Analytic Services (CAS) to connect to and access data stored in a Netezz...

View code
Administration
SAS License Verification

Displays information related to the SAS software license.

View code
ETL
Definition of Nested Formats and Validation

Creation of custom formats with logical nesting and display testing.

View code
Macro & ETL
Folder Creation and Data Copy

This SAS script defines a macro to create a folder on the file system, then uses it to create a specified folder and ...

View code
ETL
Load a CSV File from a GZ Archive

This document explains how to use the `table.loadTable` action to load CSV data compressed in GZ (gzip) format into a...

View code
Général
Sans titre

This feature allows loading an existing SAS dataset from the SAS environment into the SAS Viya Cloud Analytic Service...

View code
Macro
String Reversal Macro and Variable Tests

SAS script defining a macro to reverse a character string and performing simple tests to display macro variables.

View code
Data Manipulation
INDEX Function with CHAR and VARCHAR Strings

This script illustrates the use of the INDEX function to find the position of a substring in CHAR and VARCHAR type va...

View code
Data Management
Index an Existing SASHDAT File

This script explains how to create an index on an existing SASHDAT file directly on disk, without requiring the full ...

View code
ETL
Joining Tables from Multiple Caslibs with fedSql.execDirect

This example shows how to join three external tables using the fedSql.execDirect action. It combines a Base SAS datas...

View code
Data Manipulation
Keeping Variables in a CAS DATA Step

Explains the use of the KEEP statement in a DATA step executed in distributed memory (CAS) to select variables to ret...

View code
Administration
List files in a caslib data source

This feature allows listing files present in a data source associated with a CAS caslib, displaying detailed informat...

View code
Général
Sans titre

SAS script performing a one-sided or two-sided Student's t-test on internal data, including the manual calculation of...

View code
Data Access
Hadoop Data Connector

Allows data transfer between Hive and SAS Cloud Analytic Services (CAS).

View code
Administration
Hide a column for most users

This example illustrates how to modify access controls on a specific column of a CAS table to hide it from all users,...

View code
Macro
Comparison of IF vs. WHERE filtering in a macro

Script generating test data and executing a macro to repeatedly compare two filtering methods (IF vs WHERE).

View code
Data Access
Informix Data Connector

This document describes the SAS Cloud Analytic Services (CAS) data connector for Informix, allowing data to be read f...

View code
Visualization
Random Data Generation and SGPLOT Visualization

Script generating random data to create a custom scatter plot.

View code
Statistical
Force a Specific Order on a Variable (PROC CARDINALITY)

This SAS script illustrates how to use the CARDINALITY procedure in SAS Viya 4 to analyze variable cardinality and, s...

View code
Statistical
Descriptive Analysis and Normality Tests on Baseball Data

Descriptive statistical analysis script using the UNIVARIATE procedure to examine the distributions of nRuns and nHit...

View code
Data Analysis
Obtain FedSQL Query Execution Details

This example demonstrates how to obtain execution plan details for a FedSQL query submitted to the CAS server, using ...

View code
Data Access
Greenplum Data Connector

Enables data transfer between a Greenplum database and SAS Cloud Analytic Services (CAS).

View code
Text Analysis
The TEXTMINE procedure

The TEXTMINE procedure is used to perform text mining and natural language processing (NLP) tasks on textual data sto...

View code
ETL
Creation of the Info Table

Basic script illustrating the creation of a SAS table with a single observation.

View code
Data Management
Handling Missing Values in Arithmetic Calculations

Illustration of missing value propagation during addition operations in a DATA step.

View code
Data Manipulation
Handling Missing Values with the SUM Function

Demonstration of using the SUM function to add variables containing missing values.

View code
Statistics
CAEFFECT Procedure: Estimation by Regression Adjustment

Demonstrates the use of the CAEFFECT procedure for causal effect estimation by regression adjustment, using a pre-adj...

View code
Natural Language Processing (NLP)
Selecting and Ignoring Parts of Speech and Entities in PROC TEXTMINE

This example illustrates how to use the SAS TEXTMINE procedure to analyze text while ignoring specific parts of speec...

View code
Général
Sans titre

This document describes how to download an ASTORE model from a CAS server to the local file system. This allows model...

View code
Machine Learning
Downloading an Astore Store to the Local File System

The ASTORE DOWNLOAD procedure allows downloading an analytical store (ASTORE) model, previously saved in memory on th...

View code
Modeling
Uploading a Local Analytic Store to CAS

This example demonstrates how to upload an 'analytic store' (astore) from the local file system to an in-memory table...

View code
Text Analysis, Machine Learning
Rule Extraction for Binary Targets with BOOLRULE

This example demonstrates the use of the BOOLRULE procedure to extract association rules from textual data after prep...

View code
Machine Learning
FOREST Procedure (Random Forests)

The FOREST procedure in SAS Viya implements the random forest algorithm for classification and regression tasks. It c...

View code
Predictive Modeling
Scoring New Data with an Existing Forest Model

This script illustrates how to use the FOREST procedure to train a random forest model, save it, and then use it to p...

View code
Machine Learning
SVMACHINE Procedure

The SVMACHINE procedure implements Support Vector Machines (SVM) for classification and regression. It is optimized f...

View code
ETL
Examples of delimiter management with INPUT and INFILE

Series of examples demonstrating various techniques for reading delimited data in a DATA step: managing CSVs, format ...

View code
Data Management
Password Protection for Data Tables

Example of creating an encrypted and password-protected SAS table.

View code
Reporting
Profit Report by Year and Product Line

Generates a report calculating the total profit for each year within each product line.

View code
Reporting
Report of profits by year and product line

Generates a report displaying the total profit for each year, broken down by product line.

View code
ETL
Concatenation of SAS Tables

This script illustrates several techniques for concatenating (appending) data from one SAS table to another.

View code
ETL
Understanding the SUM Statement and Accumulation

Example showing three different methods to perform a cumulative sum in a DATA step.

View code
Data Manipulation
Using Interval Multipliers in Date Functions

Demonstration of using the INTNX function with interval multipliers to calculate future dates based on weeks.

View code
Statistics
Causal Effect Estimation by Doubly Robust Methods with PROC CAEFFECT

The CAEFFECT procedure estimates causal treatment effects using doubly robust methods, such as Augmented Inverse Prob...

View code
Macro
GET Function (Expression Engine Language)

The GET function returns the element at a specified index within an Expression Engine Language (EEL) dynamic array.

View code
Data Manipulation
Value Match Search and Variable Name Retrieval

This script creates a financial ratings dataset and demonstrates different methods to identify which column (rating a...

View code
ETL
Creation of the PAY table with internal data

Creation of a SAS table named PAY from data entered directly into the code via DATALINES.

View code
Administration
Designating CAS Superuser

This document describes concepts and methods for designating or managing superuser privileges in SAS Cloud Analytic S...

View code
Reporting
Defining Conditional Formatting Formats

Creation of user-defined formats for 'traffic lighting' (conditional color highlighting).

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