Verification of the %hassuffix macro's behavior to detect if a string ends with a given suffix, using the %asserteq a...
View code
Macro
Variable verification in a dataset
This function-type macro returns '1' if a dataset contains all variables specified in a user-provided list, and '0' o...
View code
Reporting
Generating Heatmaps with SGPLOT and SGPANEL
This SAS script generates heatmaps to visualize the relationship between weight and cholesterol from the SASHELP.HEAR...
View code
Test
Unit Test Skeleton
Script template containing commented assertion examples for writing unit tests.
View code
Macro
Search and Navigation Method for VIEWTABLE
This method, designed for use within a VIEWTABLE class (SAS/AF), intercepts commands to search for values in columns ...
View code
Reporting
Generating Graphs and Tables with ODS HTMLPANEL
Generates an HTML report containing individual and grouped graphs, as well as a table, using ODS HTMLPANEL to organiz...
View code
Statistical
Automobile Data Analysis and Visualization
This SAS script creates an internal dataset, performs a frequency analysis, and generates graphs to visualize the rel...
View code
Reporting
Simple graph with PROC GPLOT
This SAS script uses the GPLOT procedure to create a scatter plot of the 'weight' and 'height' variables from the SAS...
View code
Macro
Greenbar style macro for ODS
This macro implements a 'greenbar' effect (alternating colored rows) to improve the readability of reports generated ...
View code
Performance
SAS/CONNECT Parallel Execution Demonstration
Script demonstrating asynchronous execution of SAS tasks via SAS/CONNECT to reduce overall processing time.
View code
Statistical
Example 7 for PROC GLMSELECT
This SAS example simulates data and uses PROC GLMSELECT for model selection with the LASSO method, including differen...
View code
Statistical
Examples of details for PROC GLMPOWER
This SAS script demonstrates the use of the GLMPOWER procedure to perform power analysis, based on internal data. It ...
View code
Statistical
Example Documentation 3 for PROC GLMPOWER
Power analysis and sample size calculation for a repeated measures ANOVA.
View code
Statistical
Power calculation example for a two-way ANOVA
This SAS script illustrates how to use the GLMPOWER procedure to perform power and sample size analysis for a two-way...
View code
Statistical
Example 2 for PROC GLMPOWER - Power Analysis
Calculates statistical power for a General Linear Model (GLM) using PROC GLMPOWER. The example includes contrasts and...
View code
Statistical
PROC GLIMMIX Example 7
This SAS script uses PROC GLIMMIX to analyze the magnetic force of ferrite cores at different temperatures, applying ...
View code
Statistics
Introduction to PROC GLIMMIX Example: Logistic Regression
Example of logistic regression with random intercepts using the GLIMMIX procedure on multicenter data.
View code
Statistical
Mixed Model Analysis (GLM and MIXED)
This SAS script performs a mixed model analysis of variance using GLM and MIXED procedures on an internally generated...
View code
Derniers codes ajoutés
Titre
Category
Voir
Modifying SAS Data Sets
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
OUTPUT Statement
Writes the current observation to a SAS dataset.
ActionCAS
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
Default SAS Libraries
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
SAS Viya Platform File Service
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
User-Defined Formats
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
Sans titre
Defines one or more indexes for a new output SAS data set.
Général
KEEP Statement
Specifies variables to include in output SAS data sets.
ETLCAS
SAS Library Concatenation
Explains the concept of SAS library concatenation, allowing several libraries to be logically grouped under a single reference (libref).
Data Access
Examples: Using a SAS Engine to Process External Data
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.