Transcription of Using Arrays in SAS Programming
{{id}} {{{paragraph}}}
Using Arrays in SAS Programming Technical Paper i Using Arrays in SAS Programming Table of Contents Overview .. 1 Basic Syntax of the array 1 Basic array Example: Calculating Net Income .. 2 Using Arrays with Functions and Operators .. 4 Common Tasks and Examples Using Arrays .. 6 Assigning Initial Values to array Variables or Elements .. 6 Specifying Lower and Upper Bounds of a Temporary array .. 9 Creating a Temporary array .. 9 Using SAS Variable Lists with Arrays .. 12 Expanding and Collapsing Observations .. 14 Finding a Minimum or Maximum Value As Well As the Corresponding Variable Name .. 17 Conclusion .. 18 References .. 18 1 Using Arrays in SAS Programming Overview DATA step programmers use Arrays to simplify their code, which results in programs that are frequently more efficient and less error-prone.
Using Arrays in SAS® Programming Arrays provide an alternative method of referring to variables. Instead of referring to the first revenue variable as Rev1, you can refer to it by using the array name and an index into the array, such as REVENUE[I] (assuming that I has a value of 1). Using Arrays with Functions and Operators
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}