@filippo_kow wrote:
Hi guys,
The real example is that I have ca. 15 columns with numerical value. Then, I need to find the minimal one, I am doing it using arrays:
lowest_value = min(of columns[*]);
index_lowest_value = whichn(lowest_value, of columns[*]);
column_lowest_value = vname(columns[index_lowest_value]);
Then I need to implement some logic for columns other that column_lowest_value (using some loops and so on), so I try run the macro with column_lowest_value as a parameter - something like that:
call symput('lowest', column_lowest_value, 'g');
%do_sth(&lowest.);
/* or: */
call execute('%do_sth('||lowest||');');
The problem is that I need to do that dynamically, during processing. I am thinking about some workaround, but no idea so far 😞
Don't insert macro-stuff into not fully working sas code, the macro-code will make things more complex, only.
You should start explaining what you want to achieve at the end, so that we can suggest something working.
... View more