I'll try 🙂 The part of the macro that uses proc iml and where it stops is: proc iml; call symput('anzahl_eintraege',left(char(nrow({&liste})))); quit; %let anzahl_eintraege= %eval(&anzahl_eintraege*1); proc iml; a = t(1:&anzahl_eintraege); b = {&liste}; c = length(b); create listfile var{a b c}; append; close listfile; quit; I have a dataset with a variable "ops_ko" for which I have 100 columns, "ops_ko1", "ops_ko2" and so on to "ops_ko100". If any single one of these columns within a row contains a certain value, I want a (newly added) dummy variable to say 1, else 0. The macro is supposed to do that, except that my SAS does not seem to work with proc iml so it is not beeing executed 😞 Does that make it better...?
... View more