Macro to list the members of a specified SAS library.
View code
Macro
Macro _LIB for extracting library name
This macro extracts the SAS library name from a full data set reference, or returns 'work' by default if none is spec...
View code
ETL
Comparison of variable length definition methods
Demonstration of the impact of character variable initialization on their length and the risk of truncation.
View code
Général
Sans titre
Analysis and forecasting of Southern Hemisphere temperatures from external CSV data, including linear regression, aut...
View code
Reporting
Variable Metadata Report
Generates an HTML report of the metadata (name, type, length, format, informat, label) for all variables in the datas...
View code
Administration
Managing user-defined formats in CAS for Viya
This SAS script demonstrates how to create, save, promote, and make user-defined formats accessible in the SAS Cloud ...
View code
Statistical
Basic Statistical Analysis with PROC MEANS
This SAS script demonstrates the creation of a dataset and the use of PRINT, SORT, and MEANS procedures for basic des...
View code
Data Preparation
Format Management and Dataset Creation
This SAS script demonstrates the creation of a custom format using PROC FORMAT, its application, and the use of rando...
View code
Macro
Utility Macros for Data Analysis and SAS Metadata Manipulation
This script provides a set of three SAS macros. The 'DissGraphMakerLogOdds' macro performs in-depth data analysis, in...
View code
Statistical
Logistic Regression Analysis with Data Transformation
This SAS script performs a series of logistic regression analyses on an internally generated dataset, following a spe...
View code
Macro
Example of Data Creation and Conditional Macro
This SAS script illustrates the internal creation of datasets via DATA STEP and the definition/call of a macro includ...
View code
Macro
Log Formatting and Time Tracking Macro
Utility macro to generate clean and framed log messages, including execution time calculation and timeout alerts.
View code
ETL
Management of Location Data and SAS Utility Macros
This script combines the creation and updating of location data with SAS utility macro definitions for debugging and ...
View code
ETL
Reading Dates with Error Suppression
Script illustrating date import with silent handling of invalid values.
View code
ETL
Leap Year Detection
This SAS script identifies and lists all leap years between 2000 and 2200, creating a SAS dataset 'leap_years'.
View code
Statistical
Medical Data Frequency Analysis
This SAS script reads medical data provided inline, with multiple observations per line, to create a 'medicine' datas...
View code
Macro
Creating a left-aligned title
SAS macro to generate a left-aligned report title.
View code
Général
Sans titre
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.