You are on page 1of 7

ARRAYS

Definition
Arrays is a temporary grouping of SAS variables that are arranged in a particular order and identified by an array-name. Arrays are single variables with multiple values

One variable can be converted into upcase by using functions If you want to convert multiple variables into upcase simultaneously....?

Array processing
Performing same task for a series of related variables It involves in... selecting current variable for an action grouping variables into arrays Repeating an action

Array Statement
Referencing Arrays array < array-name> {number-of-elements} <list-of-variables>; */ where, n = no. of variables in array array can be placed in [ ] or { } instead of ( ).

Use a subscript enclosed in braces, brackets, or parentheses to reference an array Use the special array subscript asterisk (*) to refer to all variables in an array _numeric_ -for multiplication

DO

ARRAY

Repeats the process

Temporary grouping

You might also like