The DATAMETRICS procedure calculates a set of data quality metrics for variables in a SAS table. These metrics can in...
View code
Statistical
CARDINALITY Procedure: Variable with User-Defined Format
This example illustrates how the SAS Viya CARDINALITY procedure handles variables with user-defined formats. It demon...
View code
Data Quality
PROC DATAMETRICS: Advanced Data Quality Analysis
This script illustrates the advanced use of the PROC DATAMETRICS procedure to generate data quality metrics, leveragi...
View code
ETL
Amazon Redshift Data Connector
This connector allows data transfer between an Amazon Redshift database and SAS Cloud Analytic Services (CAS). It sup...
View code
Web Services
Test for creating and executing a SAS Viya web service
This SAS script tests the full lifecycle of a web service on SAS Viya: creation, execution via a jobflow, retrieval o...
View code
ETL
Creation of a large synthetic dataset
This SAS script generates a large dataset named `biggerDataset` in the `myLib` library, populating variables 'i', 'j'...
View code
Reporting
Creating an ODS Tagset for Multiple Stylesheets
Script defining a custom ODS Tagset to include multiple CSS files in an output.
View code
Statistical
Adjustment of Raw p-values with PROC MULTTEST
This SAS script illustrates the use of the MULTTEST procedure to adjust a set of raw p-values using the Holm, Hochber...
View code
Macro
Extracting PROC FREQ statistics via text file
SAS macro extracting a specific statistic from PROC FREQ results by redirecting output to a text file and then parsin...
View code
Statistical
Peto's Mortality and Prevalence Test with PROC MULTTEST
Example illustrating the use of the MULTTEST procedure to perform a Peto test (mortality-prevalence) with permutation...
View code
Statistical
Example 1 for PROC MULTTEST
This script performs a Cochran-Armitage trend test on tumor data using a permutation resampling method to adjust p-va...
View code
Général
Sans titre
Example of using the MULTTEST procedure to perform multiplicity adjustments based on bootstrap resampling in toxicolo...
View code
Macro
Creating and Testing a SAS Web Service for Object Sending
This SAS script uses macros to create and test a web service named 'sendObj'. The service is designed to return SAS t...
View code
Unit Test
Test of the ms_triggerstp macro
Unit test program to validate the functionality of the ms_triggerstp macro, which simulates and executes SAS Stored P...
View code
Macro
Test of the ms_getusers macro
Unit test script for the ms_getusers macro, validating user extraction and variable scope management.
View code
Macro
Test of the ms_deletefile macro
Unit test script to validate the functionality of the ms_deletefile macro.
View code
Test / Macro
Unit tests for mp_zip and mp_unzip
Test script validating the compression and decompression functionalities of mp_zip and mp_unzip macros across differe...
View code
Tests
Column Validation Tests (mp_validatecol)
Unit test script for the `mp_validatecol` macro which validates different types of column data (library/dataset names...
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.