Hello ,
my purpose was to assign rowname and colname for a matrix using the function mattrib like this :
proc iml;
use panel;
read all var{var1} into sub; sub=unique(sub);n=ncol(sub);
rv=shape(0,n,n);
.
.
.
.
.
mattrib rv r=(sub') c=sub;
CREATE rvtab FROM rv[r=(sub') c=sub];
APPEND FROM rv[r=(sub') c=sub];
CLOSE rvtab ;
run;quit;
sub contains numerics like : 8923, 6322,....
after runing it shows : rowname and colname must be character !!
that why i wanted to convert sub into a character vector! I did this without success!!!
Message was edited by: nadra