O'Reilly logo

SAS Functions by Example, Second Edition, 2nd Edition by Ron Cody

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 5

Array Functions

 

Introduction

DIM

HBOUND

LBOUND

Introduction

Although there are only three array functions, chances are you will need to use some or all of them if you use arrays in your programs. They are all used either to determine the number of elements in, or the upper and lower bounds of, a SAS array.

Function:     DIM

When you define an array, you can either enter the number of elements in the array in parentheses (or square or curly brackets) following the array name or you can use an asterisk (*) to indicate that you don't care to count the number of elements (perhaps you are "counting challenged"). SAS programmers often use an asterisk in place of the number of array elements when the list of variables is very long or ...

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