Reporting
Mastering PROC SGMAP: A Guide to Creating and Exporting Choropleth Maps

This example opens the PDF destination, which produces PDF output. For the purpose of this example, re-run the 'Creat...

View code
Reporting
SAS Viya to Excel: Automating Professional Reports with ODS EXCEL and CAS

This SAS script demonstrates how to generate Excel files (XLSX format) from SAS procedure results, using the ODS EXCE...

View code
Général
Mastering table.tableInfo: How to Search, Filter, and Manage CAS Tables Like a Pro

Displays detailed information about a CAS table, including metadata such as structure, number of rows, and other prop...

View code
Data Management
Is Your CAS Table Too Big? How to Audit Memory Usage with tableDetails

The 'tableDetails' CAS action allows obtaining detailed information about a table loaded in memory on a CAS server. T...

View code
FedSQL
Bypass the Parser: How to Run Native Database SQL Directly in SAS Viya

This example illustrates how to use the CONNECTION TO component of the FROM clause of a FedSQL SELECT statement to se...

View code
ETL
From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

This SAS script demonstrates how to upload a local CSV file to a CAS (Cloud Analytic Services) server and apply custo...

View code
ETL
Forget PROC IMPORT: The Fast Way to Upload Local CSVs to SAS Cloud

This script illustrates how to download and load a CSV file located on an external HTTP server into SAS Cloud Analyti...

View code
ETL
Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

This functionality allows modifying existing row values in a CAS table using the `table.update` action. It supports u...

View code
File Management
Folders Are Dead: Understanding the Flat Architecture of the SAS Viya Files Service

The SAS Viya Platform Files Service allows you to store, retrieve, and delete files managed within the SAS Infrastruc...

View code
ETL
From Memory to Disk: The Complete Guide to Saving CAS Tables as SAS7BDAT

This example shows how to use the 'save' action and the 'exportOptions' parameter to save an in-memory table as a SAS...

View code
Data Access
Boost Your Performance: Optimizing CAS Data Loading with the DVR Memory Format

This document explains how to read and write data from external files using SAS, detailing the use of the DATA step, ...

View code
ETL
From CSV to Memory: A Quick Start Guide to Loading Data with PROC CASUTIL

The CASUTIL procedure provides management functions for caslibs and tables in SAS Cloud Analytic Services (CAS). It a...

View code
Language
Stop Slowing Down Viya: How to properly Mix SAS Macros with CAS Action

This documentation describes the support for the SAS macro language within the SAS Viya platform. The macro language ...

View code
ETL
Secure, Sort, and Index: A Comprehensive Guide to Managing SAS Data Sets

This example demonstrates how to modify SAS data sets using the MODIFY statement and subordinate statements within PR...

View code
DATA Step
Slim Down Your Data: How to Optimize SAS Storage with the KEEP Statement

Specifies which variables to include in output SAS data sets.

View code
Data Manipulation
Supercharge Your Lookups: Mastering Simple and Composite Indexes in the SAS DATA Step

Defines an index for a new output SAS data set.

View code
ETL
Stop Wasting Compute: Validated vs. Unvalidated Sorting in SAS Data Sets

This article provides practical examples on how to sort SAS data sets and display their descriptive information. It e...

View code
Data Access
Connect Anything: How to Leverage SAS Engines for Teradata, XML, and Web-Ready JSON

This document provides detailed examples on how to use SAS engines to interact with various external data formats, in...

View code
ETL
Modern SAS Data Architecture: Leveraging Cloud (CAS) and Distributed Engines

This document provides examples of using various SAS engines (V9, SPD, CVP, CAS) to manipulate and manage SAS data, i...

View code
ETL
WHERE vs. IF: 5 Pro-Tips for Faster Data Filtering in SAS Viya

This document provides examples of using WHERE statements and options in SAS for conditional selection of data rows, ...

View code
Data Manipulation
Fixing SAS Merge Errors: How to Standardize Attributes and Data Types

This document contains detailed examples on preparing and manipulating SAS data before combining it, addressing vario...

View code
DATA Step
SAS Data Step Logic: A Deep Dive into First.Variable and Last.Variable

This documentation provides examples of using the automatic FIRST. and LAST. variables in a SAS DATA step to process ...

View code
Data Manipulation
How to Organize and Process SAS Datasets with BY Groups and PROC SORT

This document presents practical examples on how to group and process data observations using the BY statement in a D...

View code
ETL
SAS Viya Data Loading: How to Read CSVs and Manage In-Memory CAS Tables

This document provides SAS code examples for interacting with CAS (Cloud Analytic Services) tables. It shows how to l...

View code
Data Manipulation
How to Interleave SAS Datasets: Combining Data While Preserving Sort Order

This document provides examples illustrating how to interleave SAS datasets using the SORT procedure and the BY state...

View code
Data Management
Copy, Port, or Import? 3 Essential Methods to Transfer SAS Libraries Fast

This document provides key examples and insights for managing SAS libraries, including migration, copying, and using ...

View code
Général
SAS Merge Without a BY Statement? Avoiding Common Data Step Pitfalls

This document explains how to merge SAS data sets using the MERGE statement without the BY statement, an operation of...

View code
Data Access
Dynamic SAS Library Management: Using %SYSFUNC and Macros for Automated Access

This document provides detailed examples on how to access data in the SAS environment using librefs. It covers assign...

View code
ETL
One-to-One Reading in SAS: How to Combine Datasets Without a BY Statement

This example illustrates the use of two SET statements to combine observations from two datasets ('animal' and 'plant...

View code
ETL
Stop Rebuilding Tables: Faster Ways to Append Data in SAS Using PROC APPEND and OPEN=DEFER

This document explains how to concatenate SAS datasets using various methods, including the SET statement, PROC SQL p...

View code
Data Manipulation
How to Filter SAS Data Faster: Mastering WHERE, KEEP, and Observation Options

This document provides practical examples on how to control which variables and observations are read and written whe...

View code
Development
DO WHILE vs. DO UNTIL: Choosing the Right Loop for Your SAS Data Step

This document provides examples of using DO loops in SAS, including simple iterative, nested, with value lists (DOLIS...

View code
Data Manipulation
Beyond the DATA Step: How to Filter and Alter CAS Tables Faster with PROC CASUTIL

This example uses three PROC CASUTIL statements to load, partition, and modify a CAS table. It demonstrates how to lo...

View code
Data Access
Beyond Local Data: How to Access Azure ADLS ORC Tables Using SAS LIBNAME

This example illustrates how to read an ORC (Optimized Row Columnar) format table stored in Azure Data Lake Storage G...

View code
Control Flow
Stop Using Nested IF-THEN: Mastering the SELECT WHEN Statement in SAS

This example shows how to use the DATA step's SELECT statement to subset a SAS dataset and apply conditional modifica...

View code
Général
How to Generate and Filter Data Efficiently in a SAS DATA Step

This example shows how to use the FIRSTOBS= and OBS= data set options with the WHERE statement to specify a segment o...

View code
Data Manipulation
Faster Merging in SAS: Why Hash Objects Outperform Traditional Joins

This example illustrates the use of a hash table to merge two datasets sharing a common variable. The hash table is c...

View code
Data Manipulation
Mastering SAS In-Place Updates: How to Handle Complex Transactions with IORC

This example illustrates how to modify a master dataset by adding or updating observations from a transaction dataset...

View code
Data Access
Skip the Libref: How to Access SAS Data Directly via File Paths

This document describes the key elements of assigning a SAS library, including the library name (libref), the library...

View code
Machine Learning
Deploying Boolean Rules: A Guide to Scoring Models with PROC BOOLRULE and SAS ASTORE

This functionality describes how to apply boolean rules generated by the BOOLRULE procedure to new data. Scoring allo...

View code
Data Access
Beyond Local Files: Streamlining Big Data with the SAS Parquet Engine on GCS

This example demonstrates how to create a Parquet table in a Google Cloud Storage bucket. The LIBNAME statement estab...

View code
ETL
The SAS Viya Data Type Matrix: Optimizing Storage with VARCHAR and VARBINARY

This document describes the data types supported by the SAS Viya CAS server, including traditional SAS types (CHARACT...

View code
Administration
Mastering PROC DATASETS: How to Generate a SAS Data Dictionary Fast

This example illustrates the output of the CONTENTS statement for the Group data set. The output shows the modificati...

View code
Data Manipulation
Cleaning SAS Datasets: How to Use the DROP Statement to Manage Variables

Excludes variables from output SAS datasets.

View code
Mapping
Visualizing US Geospatial Data: A Guide to PROC SGMAP and Choropleth Maps

This SAS script analyzes and visualizes data to create a gradient map of the United States, excluding Alaska, Hawaii,...

View code
ETL
High-Performance Aggregation in SAS Viya: Mastering CAS GroupBy Actions

This example groups the CreditQualify table by State variables and State FIPS codes, then uses Credit_Score as a weig...

View code
SQL
Don't Over-Index! The Expert Guide to Smarter SAS PROC SQL Indexing

An index is a file associated with a table that allows access to rows by index value. Indexes can speed up access to ...

View code
Data Processing
Scaling the SAS DATA Step: Mastering MPP and Multithreading in SAS Viya

The DATA step is a fundamental component of SAS programming, enabling data manipulation and transformation. In the SA...

View code
Général
From Local Work to CAS: 4 Essential Scripts for SAS Viya Table Promotion

This feature allows creating a copy of an existing table loaded into memory within a SAS Cloud Analytic Services (CAS...

View code
ETL
High-Speed Feature Engineering: Mastering the CAS DATA Step in SAS Viya

This example shows how to use the DATA step to create new variables and conditionally filter data. It uses LENGTH and...

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