CALL FILLMATRIX Routine

Replaces all of the element values of the input matrix with the specified value.
Category: Matrix Operations
Note: You can use the FILLMATRIX CALL routine with multidimensional numeric arrays.

Syntax

CALL FILLMATRIX(X, Y);

Required Arguments

X
specifies an input numeric matrix.
Y
specifies the numeric value that will fill the matrix.

Example

The following example uses the FILLMATRIX CALL routine.
options pageno=1 nodate ls=80 ps=64;

proc fcmp;
   array mat1[3, 2] (0.3, -0.78, -0.82, 0.54, 1.74, 1.2);
   call fillmatrix(mat1, 99);
   put mat1=;
quit;
Output from the FILLMATRIX CALL Routine
                                The SAS System                                1

                               The FCMP Procedure

mat1[1, 1]=99 mat1[1, 2]=99 mat1[2, 1]=99 mat1[2, 2]=99 mat1[3, 1]=99
mat1[3, 2]=99