Language Reference |
VALSET Call |
The VALSET subroutine performs indirect assignment. The subroutine takes the name of a matrix and assigns a new value to that matrix.
The arguments to the VALSET subroutine are as follows:
is a character matrix or literal that specifies the name of a matrix.
is a value to which the matrix is set.
For example, the following statements assign the string "A" to the value of the B matrix. The VALSET subroutine assigns the value 99 to the matrix A.
B = "A"; call valset(B, 99); print A;
The previous value of the indirect result is freed. The following statement sets to 99, but the value of is unaffected by this statement:
b=99;
Copyright © SAS Institute, Inc. All Rights Reserved.