O'Reilly logo

Mastering the SAS DS2 Procedure by Mark Jordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.3.3 Object-Oriented Programming with DS2 Packages

4.4 Review of Key Concepts

4.1 Introduction

In this chapter, we will write user-defined methods to create custom, reusable blocks of DS2 code. First, we’ll explore user-defined methods written inline in a DS2 DATA program, and then we’ll learn how to store, share, and reuse user-defined methods in DS2 packages. Specifically, we will cover these points:

•   defining user-defined methods

•   defining inline methods

•   setting parameters

•   returning a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required