Smantha, Thanx for your quick reply. Below is the error log from running the posted code: 56 data have; 57 set sources; 58 array a{*} var1 -- var28; ERROR: Variable var1 cannot be found on the list of previously defined variables. WARNING: Defining an array with zero elements. 59 Obs = _n_; 60 len = length(sourcerow); 61 do i=2 to len by 2; 62 a[i/2]= input(substr(sourcerow, i, 1)); - 22 76 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, ',', -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=. ERROR 76-322: Syntax error, statement will be ignored. Not sure how to continue.
... View more