1748 Codes trouvés
Data preparation
Data preparation for earthquakes

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.
Action CAS
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.
ETL CAS
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.
Tools CAS
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.
ETL CAS
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.
Data Access
SAS Code for SAS VIYA
Catégories
CAS Only
All categories Action Administration Algorithme Algorithmic Base SAS CAS CASL Chart Code Quality / Unit Test Combine Data Configuration Connectivity Control Flow Data Data Access Data Access and Manipulation Data Analysis Data Analysis, Data Exploration Data Creation Data Exploration Data Exploration and Reporting Data Integration Data Loading Data Management Data Manipulation Data Preparation Data Processing Data Processing and Reporting Data Quality DATA Step DATA Step Programming Date Functions Development Development/Debug Documentation Documentation/Information Dynamic Programming ETL ETL, Data Transformation ETL, Macro, Performance Analysis ETL, Reporting ETL, Reporting, Statistics ETL/Reporting Export FedSQL File Management Finance Flow Control Function Function / Macro Fundamental Concepts Général Graph Graphic Graphic Utility Graphical Reporting Interface/Legacy Interoperability / Web Service Invalid Syntax Language Language Fundamentals Library Management Machine Learning Macro Macro / Documentation Macro / System Macro & ETL Macro Documentation Macro Programs Macro Test Macro, ETL Macro/Function Mapping Mixed Modeling Natural Language Processing (NLP) Other Performance Predictive Modeling Programming Quality / Test Reporting SAS Engines SAS Functions SAS Library Management SAS Macro SAS Programming SQL SQL Query Language Statistic Statistical Statistical Modeling Statistics Statistics, Administration Statistics, ETL, Reporting Statistique System Utility Test Test / Code Quality Test / Macro Test, Macro Tests Text Analysis Text Analysis, Machine Learning Tools Troubleshooting Tutorial / Reports Unclassified Unit Test Unit Tests Utility Utility Macro Variable Control Visualization Web Service Web Services Web/Reporting