VALSET Call

CALL VALSET( matrix-name, new-value ) ;

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:

matrix-name

is a character matrix or literal that specifies the name of a matrix.

new-value

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;