Book description
Enhance your SAS® data wrangling skills with high precision and parallel data manipulation using the new DS2 programming language.
This book addresses the new DS2 programming language from SAS, which combines the precise procedural power and control of the Base SAS DATA step language with the simplicity and flexibility of SQL. DS2 provides simple, safe syntax for performing complex data transformations in parallel and enables manipulation of native database data types at full precision. It also introduces PROC FEDSQL, a modernized SQL language that blends perfectly with DS2. You will learn to harness the power of parallel processing to speed up CPU-intensive computing processes in Base SAS and how to achieve even more speed by processing DS2 programs on massively parallel database systems. Techniques for leveraging Internet APIs to acquire data, avoiding large data movements when working with data from disparate sources, and leveraging DS2’s new data types for full-precision numeric calculations are presented, with examples of why these techniques are essential for the modern data wrangler.
While working through the code samples provided with this book, you will build a library of custom, reusable, and easily shareable DS2 program modules, execute parallelized DATA step programs to speed up a CPU-intensive process, and conduct advanced data transformations using hash objects and matrix math operations.
Table of contents
- Foreword
- About This Book
- About the Author
- Chapter 1: Getting Started
- 1.1 Introduction
- 1.2 Accessing SAS and Setting Up for Practice
- 1.2.1 Getting Ready to Practice
- Chapter 2: Introduction to the DS2 Language
- 2.1 Introduction
- 2.2 DS2 Programming Basics
- 2.3 Converting a SAS DATA Step to a DS2 Data Program
- 2.4 Review of Key Concepts
- Chapter 3: DS2 Data Program Details
- 3.1 Introduction
- 3.2 DS2 Data Programs versus Base SAS DATA Steps
- 3.3 Data Types in DS2
- 3.4 Review of Key Concepts
- Chapter 4: User-Defined Methods and Packages
- 4.1 Introduction
- 4.2 Diving into User-Defined Methods
- 4.3 User-Defined Packages
- 4.4 Review of Key Concepts
- Chapter 5: Predefined Packages
- 5.1 Introduction
- 5.2 Executing FCMP Functions in DS2
- 5.3 The Hash and Hiter (Hash Iterator) Packages
- 5.4 The HTTP and JSON Packages
- 5.5 The Matrix Package
- 5.6 The SQLSTMT Package
- 5.7 The TZ (Time Zone) Package
- 5.8 Review of Key Concepts
- Chapter 6: Parallel Processing in DS2
- 6.1 Introduction
- 6.2 Understanding Threaded Processing
- 6.3 DS2 Thread Programs
- 6.4 DS2 and the SAS In-Database Code Accelerator
- 6.5 Review of Key Concepts
- Chapter 7: Performance Tuning in DS2
- 7.1 Introduction
- 7.2 DS2_OPTIONS Statement
- 7.3 Analyzing Performance with the SAS Log
- 7.4 Learning and Trouble-Shooting Resources
- 7.5 Review of Key Concepts
- 7.6 Connecting with the Author
- Index
Product information
- Title: Mastering the SAS DS2 Procedure
- Author(s):
- Release date: May 2016
- Publisher(s): SAS Institute
- ISBN: 9781629603070
You might also like
book
Mastering the SAS DS2 Procedure
Enhance your SAS data-wrangling skills with high-precision and parallel data manipulation using the DS2 programming language. …
book
What's New in SAS 9.4
Gives you a quick, convenient overview of new functionality, enhanced features, and new products that you …
book
The DS2 Procedure: SAS Programming Methods at Work
The issue facing most SAS programmers today is not that data space has become bigger ("Big …
book
Cody's Collection of Popular SAS Programming Tasks and How to Tackle Them
Cody's Collection of Popular SAS Programming Tasks and How to Tackle Them presents often-used programming tasks …