Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

VALSET Call

performs indirect assignment

CALL VALSET( char-scalar, argument);

The inputs to the VALSET subroutine are as follows:
char-scalar
is a character scalar containing the name of a matrix.

argument
is a value to which the matrix is set.
The VALSET subroutine expects a single character string argument containing the name of a matrix. It looks up the matrix and moves the value of the second argument to this matrix. For example, the following statements find that the value of the argument B is A and then assign the value 99 to A, the indirect result:
   b="A";
   call valset(b,99);
The previous value of the indirect result is freed. The following statement sets B to 99, but the value of A is unaffected by this statement:
   b=99;

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.