STAT 430 Lecture 9: Arrays

56 views4 pages

Document Summary

Arrays in sas are used to store and retrieve a series of values using an index value. The index represents the location in a reserved memory area. In sas an array is declared by using the following syntax: Array is the sas keyword to declare an array. Array-name is the name of the array which follows the same rule as variable names. Subscript is the number of values the array is going to store. ($) is an optional parameter to be used only if the array is going to store character values. Variable-list is the optional list of variables which are the place holders for array values. Array-values are the actual values that are stored in the array. They can be declared here or can be read from a file or dataline. Arrays can be declared in many ways using the above syntax. The values stored in an array can be accessed by using the print procedure as shown below.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents

Related Questions