NAME(
arguments )
;
The NAME function returns the names of the arguments in a column vector. The arguments parameter specifies the names of existing matrices.
In the following example, N is a
character matrix that contains the character values 'A', 'B', and 'C':
Seq = 1:3;
Const = -1;
N = name(Seq, Const);
do i = 1 to nrow(N);
msg = "Values of Matrix " + N[i];
x = value(N[i]);
print x[label=msg];
end;
Figure 23.183
Matrix Names
A primary use of the NAME function is when writing macros in which you want to use an argument for both its name and its value.
Copyright © SAS Institute, Inc. All Rights Reserved.