This SAS script creates a new data table 'work.earthquakes' from the 'sashelp.quakes' table. It adds calculated varia...
View code
Administration
System Environment Management via Macro
Use of the %sysexec command to modify the working directory and environment variables of the underlying system.
View code
Reporting
Automated Generation of Linked HTML Reports with Navigation
This program generates a system of interconnected HTML reports analyzing profits by year and product line.
View code
Reporting
Annual Profit Report by Product Line
This SAS script generates a detailed report of total profit by year, broken down by product line, using the PROC REPO...
View code
Reporting
ODS Report of Profits by Year and Product
Generation of an HTML report analyzing total profits by year and product line with conditional formatting.
View code
Reporting
Profit Report by Product Line and Year
This SAS script generates a detailed annual profit report aggregated by product line, including a percentage of profi...
View code
Mixed
Sales Report and Negative Binomial Simulation
Script combining a sales report (SASHELP.ORSALES) and a statistical data simulation (Negative Binomial Distribution).
View code
Macro
Automated Data Comparison Macro
Defines and uses an '%autocompare' macro to compare two datasets, identify differences, and present them in a readabl...
View code
ETL
DATA Step execution example with end-of-file variable
Script illustrating the use of the END= option in a DATA step to detect the last observation and perform cumulative c...
View code
Date Functions
Calculate the difference in years with INTCK
This SAS script calculates and displays the difference in years between two dates using the INTCK function.
View code
Data Processing
Interval Alignment and Date Functions
Demonstration of alignment options for INTNX and INTCK date/time functions in SAS, illustrating interval calculation ...
View code
ETL
Using the ?? modifier in INPUT
Example of using the ?? modifier to suppress read error messages.
View code
ETL
Export SASHELP.CLASS data to CSV
This SAS script exports the content of the standard SASHELP.CLASS table to a CSV file named class.csv, including colu...
View code
ETL
Exporting Data to CSV
Exports the sashelp.class table to a CSV file.
View code
Utility
Viewing FCMP Function Libraries
This SAS script is used to list and view the contents of an FCMP function library, specifically 'advrpt.functions'.
View code
Utility
Deletion of WORK data
This script deletes all temporary data tables (memtype=data) from the WORK library.
View code
Administration
Checking system options and macro variables
This SAS script checks a system option (`SASAUTOS`) and displays the values of environment or macro variables (`advte...
View code
Macro
Trace the location of an autocall macro
This script configures autocall macro libraries in SAS and demonstrates the use of a built-in macro (%obscnt) to coun...
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.