So I have a macro similar to this, with the objective of calculating information value:
%macro iv_calc(x,event,varlist);
data main_table;
set x(keep=event varlist.);
run;
/****Steps to compute IV ****/
%mend;
X is the name of the dataset, event
is the dependent variable name and varlist
has the names of all the independent variables in a macro variable format.
The number of variables in varlist
is unknown and could vary from 100 to 2000+. As a result, the macro is taking a very long time to run. I'm new to this, so my request is to understand if there's a way for me to split the varlist
into 2, and run the same macro in parallel(because event is needed to compute information value), so as to reduce the runtime. My first thought was resorting to a shell script, but the number of variables is unknown and there lies the problem. Any tiny help will be greatly appreciated. Thanks a lot.