Thanks user667489. Perhaps I think good.. But now I have problem with merge methods...
data Dictionary;
input id_wiersz Labely $20. ;
datalines;
1 Active
2 Gold
3 Prime
;
*Get the array parameter;
proc sql noprint;
select count(1) into :reccount from work.Dictionary ;
quit;
proc transpose data = Dictionary out = Dictionaryout;
var Labely;
run;
data ArraryLoaded;
set Dictionaryout (drop=_name_) nobs = nobs;
array Dictionary _CHAR_;
format col1-col3 $50.;
retain col1-col3;
array t[&reccount] $;
do i = 1 to dim(t);
if _N_ = 1 then t[i] = put(Dictionary[i], 8.);
else t[i] = compress(t[i] || ',' || put(Dictionary[i], 8.));
end;
if _N_ = nobs;
put "var1," t1;
put "var2," t2;
put "var3," t3;
run;
data Scinamy;
input Description $20. ;
datalines;
New old Active
New Active Old
ANother record
Records with Gold
Value with Gold
;
How to lista(&reccount) insert array t[&reccount]?
data Scinamy1;
set Scinamy;
array lista(&reccount) $8 _temporary_ ('Active','Gold','Prime');
length AA $30 ;
do i = 1 to dim(lista);
if findw(Description,lista(i),,'spit') then AA=catx(' ',AA,lista(i));
end;
if missing(AA) then AA='Not Found';
drop i;
run;
"data ArraryLoaded"'I loaded values to array from table. And I need use this array to next step -data Scinamy1;- i want use array fromData ArraryLoadedinstead"array lista(&reccount) $8 _temporary_ ('Active','Gold','Prime');fromdata Scinamy1;