70.3k views
5 votes
What does the following ARRAY statement do?

array seed{*} _character_;
a. This statement creates a temporary array of character variables.
b. This statement creates an array of all previously defined character variables in the DATA step.
c. Nothing. This is not an accurate ARRAY statement.

1 Answer

4 votes

Final answer:

The ARRAY statement in SAS creates an array of all previously defined character variables in the DATA step.

Step-by-step explanation:

The ARRAY statement in question is used in the SAS programming language and the correct interpretation of the line array seed{*} _character_; is: This statement creates an array of all previously defined character variables in the DATA step.

The underscore wildcard (_character_) tells SAS to include all character variables that have been defined before this ARRAY statement in the DATA step. The asterisk (*) allows SAS to determine the size of the array automatically based on the number of character variables included.

User Patmood
by
8.0k points