ETL

SAS Data Engineering Handbook: ETL Workflows, CAS Performance, and Big Data Integration

200 Résultats disponibles

This category serves as the ultimate toolkit for Data Engineers and SAS© architects focused on performance and efficiency. It centers on optimizing data pipelines (ETL), from initial ingestion to final preparation for analytics.
Here you will find advanced techniques to modernize your workflows, whether you are operating in SAS© 9 or SAS© Viya (CAS):
Data Ingestion & Export: Master the handling of flat files (CSV, XML, Excel) and Cloud interactions (PROC CASUTIL, ZIP loading, encoding management).
Performance & Optimization: Learn how to create composite indexes, compress in-memory data, partition for parallel computing, and utilize Bulk Loading for external databases (Snowflake, Redshift, Hadoop).
Advanced Manipulation (Data Step & SQL): Techniques for complex joins, transaction management (modify, update), deduplication, and data cleansing.
Interoperability: Connectors for external databases, REST API calls, and data type optimization (VARCHAR vs. CHAR).
These resources are designed to transform slow, fragile data pipelines into robust, high-speed data architectures.
ETL
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 ...

View code
ETL
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, dele...

View code
ETL
Stop Bloating Your Datasets: The Definitive Guide to Variable Selection with KEEP

Specifies variables to include in output SAS data sets.

View code
ETL
Stop Copy-Pasting: Automate Your CSV Generation with the DBMS=CSV Option

This example explains how to export a SAS dataset to a CSV file using the EXPORT procedure.

View code
ETL
Variable Mismatches? No Problem. How to Standardize Metadata with ATTRIB and PROC SQL

This document provides detailed examples on preparing and combining SAS datasets, addressing common issues such as in...

View code
ETL
Stitching Data Without Keys: Mastering One-to-One Reading in the SAS Data Step

This example illustrates combining observations from two datasets using the SET statement. It highlights the behavior...

View code
ETL
Insert or Update? Handling Transactional Logic with _IORC_ and %SYSRC

This example illustrates how to use the `MODIFY` statement in a DATA Step to update a master data set (`master`) from...

View code
ETL
Stop Indexing Everything: Balancing Query Performance vs. Disk Space in SAS

An index is a file associated with a table that allows access to rows by index value. Indexes can speed up access to ...

View code
ETL
Feature Engineering in CAS: How to Create Custom Categories from Continuous Data

This example uses the DATA step to create a data set named CreditQualify. The DATA step creates variables using the L...

View code
ETL
No Data Step Required: Creating Computed Columns on the Fly with table.fetch

This feature allows viewing specific rows of an in-memory CAS table, with filtering, sorting, and limiting options.

View code
ETL
From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

This SAS script demonstrates how to upload a local CSV file to a CAS (Cloud Analytic Services) server and apply custo...

View code
ETL
Forget PROC IMPORT: The Fast Way to Upload Local CSVs to SAS Cloud

This script illustrates how to download and load a CSV file located on an external HTTP server into SAS Cloud Analyti...

View code
ETL
Stop Overwriting Your Data: How to Perform In-Place Updates with table.update

This functionality allows modifying existing row values in a CAS table using the `table.update` action. It supports u...

View code
ETL
From Memory to Disk: The Complete Guide to Saving CAS Tables as SAS7BDAT

This example shows how to use the 'save' action and the 'exportOptions' parameter to save an in-memory table as a SAS...

View code
ETL
From CSV to Memory: A Quick Start Guide to Loading Data with PROC CASUTIL

The CASUTIL procedure provides management functions for caslibs and tables in SAS Cloud Analytic Services (CAS). It a...

View code
ETL
Secure, Sort, and Index: A Comprehensive Guide to Managing SAS Data Sets

This example demonstrates how to modify SAS data sets using the MODIFY statement and subordinate statements within PR...

View code
ETL
One Step, Multiple Files: How to Ingest a ZIP of CSVs into a Single CAS Table

Demonstrates how to read a ZIP archive containing multiple CSV files in SAS Viya 4.

View code
ETL
Clean Data on Ingest: How to Transform Dates and Percentages Directly into CAS

This SAS script demonstrates how to load a CSV file from a CAS caslib and apply SAS informats to correctly interpret ...

View code
ETL
Mastering Data Imputation in SAS Viya: Using SINGLE=YES for Accurate Time-Series

This script illustrates the use of the LAG function in a DATA Step to impute missing values. The LAG function retriev...

View code
ETL
Stop Wasting Compute: Validated vs. Unvalidated Sorting in SAS Data Sets

This article provides practical examples on how to sort SAS data sets and display their descriptive information. It e...

View code
ETL
Modern SAS Data Architecture: Leveraging Cloud (CAS) and Distributed Engines

This document provides examples of using various SAS engines (V9, SPD, CVP, CAS) to manipulate and manage SAS data, i...

View code
ETL
WHERE vs. IF: 5 Pro-Tips for Faster Data Filtering in SAS Viya

This document provides examples of using WHERE statements and options in SAS for conditional selection of data rows, ...

View code
ETL
SAS Viya Data Loading: How to Read CSVs and Manage In-Memory CAS Tables

This document provides SAS code examples for interacting with CAS (Cloud Analytic Services) tables. It shows how to l...

View code
ETL
One-to-One Reading in SAS: How to Combine Datasets Without a BY Statement

This example illustrates the use of two SET statements to combine observations from two datasets ('animal' and 'plant...

View code
ETL
Stop Rebuilding Tables: Faster Ways to Append Data in SAS Using PROC APPEND and OPEN=DEFER

This document explains how to concatenate SAS datasets using various methods, including the SET statement, PROC SQL p...

View code
ETL
The SAS Viya Data Type Matrix: Optimizing Storage with VARCHAR and VARBINARY

This document describes the data types supported by the SAS Viya CAS server, including traditional SAS types (CHARACT...

View code
ETL
SAS Viya Memory Optimization: Saving Space with CAS Table Compression

This document describes data compression management for in-memory tables in SAS Cloud Analytic Services (CAS) of SAS ...

View code
ETL
High-Performance Aggregation in SAS Viya: Mastering CAS GroupBy Actions

This example groups the CreditQualify table by State variables and State FIPS codes, then uses Credit_Score as a weig...

View code
ETL
High-Speed Feature Engineering: Mastering the CAS DATA Step in SAS Viya

This example shows how to use the DATA step to create new variables and conditionally filter data. It uses LENGTH and...

View code
ETL
SAS 9 vs. CAS: Why Your BY Statement Is Breaking Your Sort Order

This article explains how to combine SAS tables using the BY statement, presenting scenarios for concatenation (SET) ...

View code
ETL
From Cloud to Disk: How to Efficiently Convert CAS Tables to SAS Datasets

This example shows how to use the DATA step to convert an in-memory CAS table into a local SAS dataset. It illustrate...

View code
ETL
Beyond Mock Data: Building a Statistical Test Matrix for Complex SAS Simulations

This SAS script generates a synthetic dataset simulating electronic component tests for different vendors, then expor...

View code
ETL
SAS Data Step Logic: A Guide to Calculated Columns, Range Comparisons, and Conditional Grading

This SAS script illustrates different ways to calculate averages, assign grades based on thresholds, and use logical ...

View code
ETL
Data Processing and XML Export

This SAS script defines a default data source, retrieves metadata about this source, then exports its content in XML ...

View code
ETL
Creating and Displaying School Grade Data

This SAS script illustrates basic operations of creating data tables via DATALINES, calculating new variables, modify...

View code
ETL
Loading Data with CAS Connector (Example)

This SAS script demonstrates how to use the SAS data connector to load data from an external relational database mana...

View code
ETL
Example of DATA STEP usage with PROC APPEND

This SAS script illustrates table creation and deletion, particularly managing dependencies when creating tables from...

View code
ETL
SAS Table Manipulation (Filtering, Selection, and Formatting)

Fundamental DATA step examples for filtering observations, selecting variables, and applying formats.

View code
ETL
MERGE Operations with IN= Option

This SAS script illustrates the use of the MERGE statement with the IN= option to perform different joins between two...

View code
ETL
Executing an iterative DO loop

This script illustrates the use of an iterative DO loop in a DATA step to generate multiple output records from a sin...

View code
ETL
Retirement Savings Plan Simulation

This script simulates the growth of a retirement savings account over 6 years, considering annual contributions and c...

View code
ETL
Generic Variable Transformation

This SAS script demonstrates the use of `_numeric_` and `_character_` keywords to apply conditional transformations t...

View code
ETL
PG2 Course Data Generation

Script for creating multiple data tables (CLASS_*, EU_SPORTS, etc.) for the SAS PG2 course.

View code
ETL
Creation of the myLib.smallDataset table

Data generation script creating a table with numerical values and their formatted representation.

View code
ETL
Korean Fiscal Data Extraction and Parsing via API

Script retrieving financial data from the Open Fiscal Data API (Korea) via HTTP requests, followed by manual parsing ...

View code
ETL
Direct data reading with index (KEY=)

Demonstration of using the KEY= option in the SET statement for indexed reading.

View code
ETL
Creation of Metadata for Laboratory Variables

This SAS script creates a metadata dataset named 'lb_meta' containing attributes (name, type, length, label) for labo...

View code
ETL
Download and Import Titanic Data

Retrieving the Titanic passenger CSV file from a web server and importing it into a SAS table.

View code
ETL
Exporting tables to Excel via LIBNAME

SAS data export script to an Excel file using the EXCEL library engine.

View code
ETL
Data Transformation and Restructuring with PROC TRANSPOSE

Educational example illustrating data transposition and variable renaming.

View code
ETL
Creation and Display of Internal Data

Basic script creating a dataset from manually entered lines and displaying the result.

View code
ETL
Data Manipulation with LAG Functions

Script illustrating data creation, sorting, and the use of the LAG function to access previous observations.

View code
ETL
Extracting ORSALES Sales Data

Selection and copying of specific columns from the SASHELP.ORSALES example table.

View code
ETL
Data Simulation and Transformation via Array

Generation of simulated data and complex transformation using arrays and variable retention.

View code
ETL
Sans titre

This SAS script demonstrates the use of the Teradata Parallel Transporter (TPT) option with SAS/ACCESS to bulk load d...

View code
ETL
Visualize DATA Step Processing Information with Automatic Variables

This document explains how to use DATA Step automatic variables, especially '_THREADID_', to understand and control d...

View code
ETL
Execute a DATA step in CAS on a CAS table

This document explains how to execute a DATA step in the CAS (Cloud Analytic Services) environment using a CAS table ...

View code
ETL
Data Formatting and Payroll Calculation

Script illustrating multi-line data reading, derived variable calculation, and application of display formats.

View code
ETL
Definition of Nested Formats and Validation

Creation of custom formats with logical nesting and display testing.

View code
ETL
Load a CSV File from a GZ Archive

This document explains how to use the `table.loadTable` action to load CSV data compressed in GZ (gzip) format into a...

View code
ETL
Joining Tables from Multiple Caslibs with fedSql.execDirect

This example shows how to join three external tables using the fedSql.execDirect action. It combines a Base SAS datas...

View code
ETL
Creation of the Info Table

Basic script illustrating the creation of a SAS table with a single observation.

View code
ETL
Examples of delimiter management with INPUT and INFILE

Series of examples demonstrating various techniques for reading delimited data in a DATA step: managing CSVs, format ...

View code
ETL
Concatenation of SAS Tables

This script illustrates several techniques for concatenating (appending) data from one SAS table to another.

View code
ETL
Understanding the SUM Statement and Accumulation

Example showing three different methods to perform a cumulative sum in a DATA step.

View code
ETL
Creation of the PAY table with internal data

Creation of a SAS table named PAY from data entered directly into the code via DATALINES.

View code
ETL
Detailed Journey of a DATA Step Program

This document describes in detail the steps to execute a DATA Step program in the Cloud Analytic Services (CAS) envir...

View code
ETL
Amazon Redshift Data Connector

This connector enables the transfer of data between an Amazon Redshift database and SAS Cloud Analytic Services (CAS)...

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
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
ETL
Displaying SASHELP Data and Local Creation

Demonstration script displaying a system table and creating a custom table.

View code
ETL
Example of table merging by identifier

Script illustrating the creation of manual data and their merging via a Data Step.

View code
ETL
Dataset Creation with Datalines and Display

This script creates a SAS dataset from inline data and displays the result.

View code
ETL
Creating and Displaying the prob12_8 Table

Script generating a SAS dataset from embedded data (datalines) and displaying the result.

View code
ETL
Restructuring SAS Tables (Wide to Long and vice versa)

Demonstration of restructuring SAS datasets: converting a 'wide' format (multiple columns per subject) to a 'long' fo...

View code
ETL
Fahrenheit to Celsius Temperature Conversion

Temperature conversion script using arrays and an iterative loop.

View code
ETL
Time Unit Conversion using Arrays and Loops

Data transformation script converting numerical values through iterative processing on grouped variables.

View code
ETL
Bonus Calculation and New Salary by Classification

Script for creating a salary table including a conditional bonus calculation based on the employee's class.

View code
ETL
Bulk Loading Data to Snowflake via SAS/ACCESS

This SAS script demonstrates the use of SAS/ACCESS bulk loading functionality to transfer data from a temporary SAS d...

View code
ETL
Bulk Data Loading

This SAS script illustrates bulk data loading to an external database via SAS/ACCESS, using the PROC SQL BULKLOAD met...

View code
ETL
Bulk Load Example (BULKLOAD)

This SAS script demonstrates the use of the BULKLOAD option to load data into an external database table via SAS/ACCE...

View code
ETL
Bulkload - SAS/ACCESS Greenplum Example

This SAS script demonstrates two methods for bulk loading data into a Greenplum database via SAS/ACCESS. It includes ...

View code
ETL
Bulk Data Loading (Bulkload)

This SAS script demonstrates two methods for bulk loading data to an external database (potentially HAWQ as indicated...

View code
ETL
PROC SQL vs. Data Step: Mastering High-Performance Bulk Loads in SAS

This SAS script demonstrates two methods for bulk loading data into an external relational database (potentially Impa...

View code
ETL
Bulk Load via ODBC to SQL Server

Example of bulk loading data to a SQL Server database via ODBC.

View code
ETL
Bulk Load Programs Example

This SAS script demonstrates bulk loading data from an internally created SAS dataset to an external database table v...

View code
ETL
Bulkload Example

This SAS script illustrates a bulkload example of data to a DBMS table using SAS/ACCESS. It first creates an in-memor...

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
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
ETL
OpenFiscalData API Extraction and Parsing

Script automating the retrieval of public financial data via a Korean REST API (OpenFiscalData). The script downloads...

View code
ETL
Extraction and consolidation of fiscal data via REST API

Script for extracting data from the Open Fiscal Data API (Korea) using iterative HTTP calls and SAS's JSON engine.

View code
ETL
Reading and Correcting Delimited Data with Missing Delimiters

This SAS script illustrates how to handle and correct the reading of delimited data files when some delimiters are mi...

View code
ETL
Difference Table Creation and Indexing Macro

This SAS macro creates or updates the structure of a SAS table (`DIFFTABLE` by default) intended to store information...

View code
ETL
Analysis and merging of corporate and financial data

This SAS script creates and manipulates two internal datasets ('company' and 'finance') from in-line data, then merge...

View code
ETL
Data Creation for Proportions Test

This SAS script prepares an internal dataset for subsequent statistical analysis of proportion differences.

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
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
ETL
Customer Table Creation

SAS script for creating a table named 'customer' from data included in the code.

View code
ETL
JSON Generation of a SAS Table

This SAS script converts the SASHELP.ORSALES table into JSON format and writes it to the '_webout' fileref.

View code
ETL
Processing and consolidation of department data

This SAS script creates two datasets (`research_development` and `Publication`) from internal data provided via `data...

View code
ETL
CASL and FedSQL Join Examples

This SAS script demonstrates different methods for performing joins on baseball data within the SAS Viya 4 environmen...

View code
ETL
Data Filtering with the IN operator

Creating a data subset by filtering on the age variable using the IN operator.

View code
ETL
Format Management and Data Transformation

This SAS script defines and uses formats to standardize and transform date data as well as categorical text responses.

View code
ETL
CSV Data Import and Verification

This SAS script imports an external CSV file (`np_traffic.csv`) into a SAS table named `traffic`, then displays the m...

View code
ETL
Creating and Displaying Student Data

This SAS script demonstrates the creation and manipulation of simple datasets from in-line data (datalines) for manag...

View code
ETL
Appending two CAS tables

This SAS script demonstrates how to append the content of one CAS table (CARS2) to another existing CAS table (CARS) ...

View code
ETL
Character to VARCHAR type conversion when loading into CAS

This SAS script demonstrates how to convert character variables to VARCHAR type when loading a table into CAS, in ord...

View code
ETL
Student Grades Analysis and Status Assignment

The SAS script creates two student datasets from raw data. It calculates the average scores and assigns a status base...

View code
ETL
Export data to text file

Script exporting manually entered data to a text file.

View code
ETL
FASTFORMAT Format Definition

This script defines a custom SAS format named FASTFORMAT that maps textual values to 'Diesel' or 'Gasoline' based on ...

View code
ETL
Data Generation and Export to XML

Script illustrating the creation of a SAS table and its direct writing to an XML file.

View code
ETL
Export SASHELP.CLASS to CSV

Exporting data from the SASHELP.CLASS table to a local CSV file.

View code
ETL
SASHELP data analysis and display

This simple SAS script reads the example dataset `sashelp.prdsale` and displays the content of specific variables in ...

View code
ETL
SAS CI360 Data Extraction and Loading

Authentication and retrieval of data files from SAS Customer Intelligence 360.

View code
ETL
Managing Current Dates and Times

This SAS script creates a dataset containing the current date, time, and datetime, then displays them.

View code
ETL
Filter records with a specific numeric sequence per line

This SAS program filters records from a dataset that contain a specific numeric sequence (8, 0, 1) across three conse...

View code
ETL
Classification of smoker and non-smoker risk groups

Risk level classification script based on smoking status and blood pressure.

View code
ETL
Analysis and Processing of Conference Participant Data

This SAS script reads conference participant data from an external file, performs transformations to extract phone ar...

View code
ETL
Weight Loss Survey Data Processing and Cleaning

This SAS script reads raw survey data from an external file, performs variable cleaning and recoding, calculates Body...

View code
ETL
Using the TRANWRD() Function

Demonstration of using the TRANWRD() function to replace substrings in a character variable.

View code
ETL
Cumulative Sum Calculation

This simple SAS script illustrates the use of a sum statement to calculate a cumulative sum within a DATA step, using...

View code
ETL
Table Creation with PROC DS2

This script uses PROC DS2 to create a new table named 'tatat' from the SASHELP.CLASS dataset, while initializing vari...

View code
ETL
Excel Export and External Script Execution

This SAS script exports an internal dataset to an Excel file, then executes an external VBScript script to process th...

View code
ETL
Exporting SAS Data to XML (MS Access)

This SAS script exports the 'retail' dataset from the SASHELP library to an XML file in MS Access format, by creating...

View code
ETL
ETL Macro for Loading CAS Dimension

Macro to load and persist a dimension table in the CAS environment.

View code
ETL
ETL Job Status Configuration

Macro to configure the ETL job status file which will store the status of each job.

View code
ETL
Analysis and Transformation of Automotive Data with CAS

This SAS script configures the CAS environment, loads data from SASHELP to CAS, and then applies various transformati...

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
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
ETL
Manipulating Date and Datetime Formats with ANYDATE

This SAS script demonstrates the use of ANYDATE informats to read and convert different date and datetime formats int...

View code
ETL
Data Creation and Deduplication with PROC SORT

This SAS script creates an internal dataset, then demonstrates two deduplication methods using PROC SORT: NODUP for c...

View code
ETL
Downloading FRED Economic Data

SAS macro to download specific economic data from the FRED (Federal Reserve Economic Data) database via a URL.

View code
ETL
SDTM DM Dataset Creation

This SAS script configures the environment, generates a Demographics (DM) domain dataset for SDTM using the %dm_creat...

View code
ETL
Creation of Metadata for the DM Table

This SAS script creates a dataset containing metadata (column name, type, length, label) for a 'DM' table, typically ...

View code
ETL
Investment Simulation over 5 Periods

Calculation of the future value of investments over 5 iterations via a loop.

View code
ETL
Demonstration of DO loops in SAS

This script illustrates the difference between repetitive manual calculation and the use of a DO loop for iteration i...

View code
ETL
Date and Time Manipulation and Formatting

This SAS script demonstrates the creation, manipulation, and formatting of date and time variables, as well as the us...

View code
ETL
Date component extraction and manipulation

Script illustrating the extraction of temporal elements (day, month, year, quarter, weekday) from a date variable.

View code
ETL
Dataset creation with heterogeneous dates

Example of reading dates in different formats (text, numeric) in a DATA step.

View code
ETL
Implementation and Comparison of the '_INFILE_' Technique for Data Delimitation

This SAS script demonstrates and compares two methods for delimiting complex character strings into multiple variable...

View code
ETL
DATA Step Partitioning and Sorting in CAS

Example of optimizing data loading into CAS with partitioning and sorting, followed by group processing.

View code
ETL
CAS Table Partitioning and Sorting

Demonstration of CAS performance optimization through data partitioning and sorting during loading.

View code
ETL
Using LAG and DIF Functions

This SAS script demonstrates the use of LAG and DIF functions within a DATA STEP to create new variables based on pre...

View code
ETL
Creation and Addition of ContactType Data

This SAS script creates a temporary dataset `work.ContactType` from literal data (datalines) and then appends it to a...

View code
ETL
Table creation and column filtering

Script creating a table with dynamic variable selection and displaying the result.

View code
ETL
Case Management in SAS String Comparisons

This SAS script demonstrates different methods of managing case during string comparisons to assign a status based on...

View code
ETL
Calculation of New Columns and Formatting

This program uses a DATA step to create a new table from SASHELP.CARS, by filtering data, calculating new columns, ap...

View code
ETL
Data Creation with Variable Filter and Display

Generation of a temporary table filtering variables by prefix, followed by its printing.

View code
ETL
Test of the LENGTH function

Simple demonstration of the LENGTH function's behavior on various character strings.

View code
ETL
Simplified String Concatenation

Demonstration of CATX function's efficiency for string concatenation compared to traditional methods.

View code
ETL
Merging datasets and creating reports

This SAS script creates two datasets, sorts them, then merges them in different ways (standard, inner, outer). The re...

View code
ETL
SAS Data Concatenation and Appending Techniques

Comparative demonstration of three methods to concatenate datasets: Data Step, Append Procedure (encapsulated in a ma...

View code
ETL
Data Creation and WORK Library Management

The script creates a temporary SAS dataset named THREEROWS and executes PROC DATASETS on the WORK library.

View code
ETL
Applying COMMA Numeric Format

Creation of a dataset and application of a thousands separator format.

View code
ETL
Creation and formatting of monetary data

Creation of a table with formatted monetary values and metadata analysis.

View code
ETL
BMI Calculation via Data Step

Simple Body Mass Index (BMI) calculation with output to the log.

View code
ETL
Creating and Displaying the CEREAL Dataset

This SAS script creates a `work.cereal` dataset using embedded data via `datalines`, then displays the content of thi...

View code
ETL
Creation of the THREEROWS table

Creation of a simple SAS table with data included in the code.

View code
ETL
Managing VARCHAR data in CAS

This SAS script illustrates the creation of a SAS table with long character columns, its loading into a CAS cluster w...

View code
ETL
Loading and Manipulation of Baseball Data in CAS

This SAS script loads the 'baseball' dataset from the SASHELP library into a CAS library ('casuser'), then creates a ...

View code
ETL
CAS Joins with Deep Learning and Search Analytics

This SAS script initializes a CAS session and performs data joins using the dlJoin actions from the Deep Learning act...

View code
ETL
Example of GROUPBY aggregation with CASL and FedSQL

This SAS script demonstrates the use of GROUPBY actions via PROC FEDSQL and PROC CAS (with the simple.groupBy action)...

View code
ETL
Reading and Manipulating Date Variables with Datalines

This SAS script illustrates the reading and manipulation of date variables from internal data (datalines) using vario...

View code
ETL
Data Reading and Sorting Exercises (US Presidents & Pumpkin)

Exercise script illustrating different techniques for reading raw data (Column input, pointers) and sorting.

View code
ETL
Simple Data Creation and Transformation

Basic example of data creation, variable calculation, and display.

View code
ETL
Advanced Inventory and Purchase Data Manipulation

This SAS script demonstrates fundamental and advanced data manipulation techniques. It includes creating datasets, ap...

View code
ETL
Copying data from an ODBC source to local files

This SAS script copies tables from an ODBC data source (`dwdata`) to SAS files located on a local path (`dwRaw`).

View code
ETL
Sans titre

This SAS script creates a dataset of student scores, sorts it, and identifies duplicate scores, retaining the highest...

View code
ETL
Creation of the MYLIB.CLASS1 table

This SAS script creates a table named CLASS1 in the MYLIB library using instream data (datalines).

View code
ETL
Explanation of PROC IMPORT

This document explains in detail the use of the PROC IMPORT procedure to import data from various external sources in...

View code
ETL
Converting character string to numeric value

Script demonstrating the conversion of a character variable containing separators to numeric format.

View code
ETL
Student Data Management with Sorting and Deduplication

This SAS script creates a 'CLASSTEST' table from embedded data, then generates a new table 'CLASSTEST_SORT' containin...

View code
ETL
Creating and Displaying an In-Stream Dataset

This SAS script creates a dataset named 'instream_mtcars' from in-line provided data and then displays its content.

View code
ETL
Simple Data Creation and Filtering

Demonstration script creating an internal table and displaying a subset.

View code
ETL
Currency management and display

This SAS script illustrates the use of different formats for entering and displaying monetary values (dollar and euro...

View code
ETL
Date Processing and Display

This SAS script demonstrates the creation of two datasets ('userinfo' and 'julinedata') using `datalines` and `cards`...

View code
ETL
Data Cleaning and Display (Duplicate Removal)

This SAS script creates a 'classtest' data table, cleans it by removing entirely duplicated rows using PROC SORT with...

View code
ETL
Creating and Sorting Class Data

This SAS script creates a student data table, then sorts it by subject in ascending order and by score in descending ...

View code
ETL
In-Stream Data Creation and Display

This SAS script creates a dataset named 'instream_mtcars' from data provided directly within the script via a CARDS s...

View code
ETL
Date manipulation with INTNX and INTCK

Demonstration of SAS INTNX and INTCK functions for manipulating and calculating date differences.

View code
ETL
Transposing the SASHELP.CLASS table

Simple example of transposing columns into rows using the CLASS table.

View code
ETL
Creating and Displaying Instream Data

This SAS script creates a temporary dataset 'instream_mtcars' from instream data provided directly in the code, then ...

View code
ETL
Quiz Score Creation and Analysis

This SAS script illustrates the creation of a quiz scores dataset using the in-line entry method (DATALINES) and perf...

View code
ETL
Restructuring BMI data via Data Step and Arrays

Educational example demonstrating how to transform a 'wide' format dataset (multiple measurement columns per row) int...

View code
ETL
String Manipulation

This SAS script demonstrates various string manipulation techniques, including substring extraction, reversal, compre...

View code
ETL
Data Filtering and Display with DATA STEP and PROC PRINT

Creates a dataset from integrated raw data, filters records to include only women, and displays the results. This scr...

View code
ETL
Processing and Displaying Individual Data

The SAS script creates a dataset named 'prob12_4' using embedded raw data (datalines). It reads the variables NAME, A...

View code
ETL
Examples of using PROC TRANSPOSE

This SAS script illustrates various uses of the PROC TRANSPOSE procedure to transform data structure, pivoting rows i...

View code
ETL
Many-to-One Merge of SAS Tables

Practical example of merging SAS datasets with a many-to-one cardinality relationship.

View code
ETL
Sans titre

Demonstration of one-to-one merging of SAS datasets, including data creation, prior sorting of datasets, and display ...

View code
ETL
Practice: Recoding Missing Data

Educational script creating a 'health_study' dataset via datalines. Recoding steps are mentioned in comments but not ...

View code
ETL
Interleaving SAS Data Sets

This SAS script demonstrates two methods for combining and sorting (interleaving) data sets: concatenation followed b...

View code
ETL
Interleaving SAS Data Sets

Creates and interleaves multiple SAS data sets.

View code
ETL
Demonstration: Concatenation of SAS Datasets

This SAS script demonstrates various methods of concatenating SAS datasets, including cases with identical and differ...

View code
ETL
First SAS Program: Creating Datasets

Introductory script demonstrating the creation of simple SAS tables using the DATA step and the DATALINES statement.

View code
ETL
Cancer Data Analysis and Sorting

This SAS script creates an internal dataset 'work.cancer' from raw cancer data, calculates the total number of deaths...

View code