Contents

Dedication

Foreword

About This Book

About the Author

Chapter 1: Getting Started

1.1 Introduction

1.1.1 What is DS2?

1.1.2 Traditional SAS DATA Step versus DS2

1.1.3 What to Expect from This Book

1.1.4 Prerequisite Knowledge

1.2 Accessing SAS and Setting Up for Practice

Chapter 2: Introduction to the DS2 Language

2.1 Introduction

2.2 DS2 Programming Basics

2.2.1 General Considerations

2.2.2 Program Structure

2.2.3 Procedure Options and Global Statements

2.2.4 Program Blocks

2.2.5 Methods

2.2.6 User-Defined Methods

2.2.7 Variable Identifiers and Scope

2.2.8 Data Program Execution

2.3 Converting a SAS DATA Step to a DS2 Data Program

2.3.1 A Traditional SAS DATA Step

2.3.2 Considerations

2.3.3 The Equivalent DS2 Data Program

2.3.4 More Complex Data Program Processing

2.3.5 Automatic Conversion with PROC DSTODS2

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.2.1 General Considerations

3.2.2 The Seven Subtle Dissimilarities

3.2.3 DS2 “Missing„ Features

3.3 Data Types in DS2

3.3.1 DS2 and ANSI Data Types

3.3.2 Automatic Data Type Conversion

3.3.3 Non-coercible Data Types

3.3.4 Processing SAS Missing and ANSI Null Values

3.4 Review of Key Concepts

Chapter 4: User-Defined Methods and Packages

4.1 Introduction

4.2 Diving into User-Defined Methods

4.2.1 Overview

4.2.2 Designing a User-Defined Method

4.3 User-Defined Packages

4.3.1 General Considerations

4.3.2 User-Defined Package Specifics

4.4 Object-Oriented Programming with DS2 Packages

4.4.1 General Considerations

4.4.2 Designing an Object

4.4.3 Using Objects as Building Blocks

4.4 Review of Key Concepts

Chapter 5: Predefined Packages

5.1 Introduction

5.2 Executing FCMP Functions in DS2

5.2.1 The FCMP Package

5.2.2 FCMP Package Example

5.3 The Hash and Hiter (Hash Iterator) Packages

5.3.1 General

5.3.2 Hash Package Example

5.3.3 Hash Iterator Package Example

5.4 The HTTP and JSON Packages

5.4.1 General

5.4.2 HTTP Package Specifics

5.4.3 JSON Package Specifics

5.4.4 HTTP and JSON Packages Example

5.5 The Matrix Package

5.5.1 General

5.5.2 Matrix Package Example

5.6 The PCRXFIND and PCRXREPLACE Packages

5.6.1 General

5.6.2 PCRXFIND and PCRXREPLACE Package Examples

5.7 The SQLSTMT Package

5.7.1 General

5.7.2 SQLSTMT Package Example

5.8 The TZ (Time Zone) Package

5.8.1 General

5.8.2 TZ Package Example

5.9 Review of Key Concepts

Chapter 6: Parallel Processing in DS2

6.1 Introduction

6.2 Understanding Threaded Processing

6.2.1 The Need for Speed

6.2.2 Loading Data to and from RAM

6.2.3 Manipulating Data in RAM

6.3 DS2 Thread Programs

6.3.1 Writing DS2 Thread Programs

6.3.2 Parallel Processing Data with DS2 Threads

6.4 DS2 and the SAS In-Database Code Accelerator

6.4.1 DS2 Program In-Database Processing

6.5 DS2 and SAS® Viya® and SAS Cloud Analytic Services (CAS)

6.5.1 A Brief Introduction to SAS Viya and CAS

6.5.2 Running DS2 Programs in CAS

6.6 Review of Key Concepts

Chapter 7: Performance Tuning in DS2

7.1 Introduction

7.2 DS2_OPTIONS Statement

7.2.1 TRACE Option

7.3 Analyzing Performance with the SAS Log

7.3.1 Obtaining Performance Statistics

7.3.2 Analyzing Performance Statistics

7.3.3 Tuning Your Code

7.4 Learning and Troubleshooting Resources

7.4.1 SAS Learning Resources

7.4.2 SAS Support Communities

7.4.3 SAS Technical Support

7.5 Review of Key Concepts

7.6 Connecting with the Author

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.124.177