Dear All,
The below code is not executing successfully as the matrix size is large. The program is ending up with the below error
ERROR: (execution) Unable to allocate sufficient memory.
operation : LENGTH at line 1395 column 11
operands : _TEM1001
_TEM1001 33 rows 400000 cols (character, size 80)
Is there anyway to find and split the matrix based on the size?
dm "output" clear;
data one;
array cha{*} $18. c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32 c33;
do j = 1 to 400000;
seed = 100;
do i = 1 to hbound(cha);
rannum = ranpoi(seed,50);
if rannum = 0 then rannum = 1;
cha{i} = repeat("a",rannum);
end;
output;
end;
run;
proc iml;
use one;
read all var _CHAR_ into y[colname=cNames];
close one;
c = length(y`);
k = cnames`||char(c[,<>]);
print k;
quit;
Thanks in Advance,
Venkat.