This SAS script defines three utility macros (%bracket, %arcpie, %line) to facilitate the drawing of basic graphic sh...
View code
Reporting
Bubble Plot Generation with SGPLOT
This SAS script generates a bubble plot using PROC SGPLOT. Source data is created directly within the script via a DA...
View code
Reporting
3D Bubble Plot Generation
This SAS script generates a 3D Bubble Plot using the SGPLOT procedure. The data is created directly within the script...
View code
Chart
Bubble Chart with Transparency
Generation of a transparent bubble chart with ODS SGPLOT.
View code
Macro
Test macro with log display
Defines a simple macro that writes the value of its parameter to the SAS log and configures log display options.
View code
Macro
Remove the last BY title and store it in a macro variable
Macro to remove the last title if it's a title generated by a 'BY' clause and store its content in the global macro v...
View code
Statistical
Conjoint Analysis of Chocolates (BCHOICE)
This SAS script performs a conjoint analysis of a set of chocolates using the BCHOICE procedure to fit a simple logit...
View code
Macro
Deletion of macro variables and macros
Macro for deleting macro variables (potentially macro variable arrays) and, optionally, compiled macros from the WORK...
View code
Statistics
Multinomial Generalized Logit Modeling with PROC BGLIMM
Example of using the BGLIMM procedure to fit a multinomial generalized logit model on nominal response data.
View code
Statistical
Example 8 PROC BGLIMM: Using Power Prior
Illustration of using the BGLIMM procedure to incorporate historical data via the 'Power Priors' method.
View code
Statistical
Analysis of Eye and Hair Color Frequency by Region
This SAS script creates a 'Color' dataset from embedded data (datalines) and then performs several frequency analyses...
View code
Macro
Macro boxanno - Scatter plot annotation with box plots
Set of macros (boxaxis and boxanno) to create annotation datasets for adding univariate box plots to the axes of a sc...
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 ManipulationCAS
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.
ETLCAS
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.
ToolsCAS
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.
ETLCAS
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.
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.