title: Multiple values for a sas macro parameter
body: <p>I'm new to SAS Macro programming and need to enable the following macro to be able to handle and process multiple values for its macro parameters.Hello,</p>
  
  <pre><code>data have;
  input name $ ACCOUNT_ID $ cust_id;
  cards;
  ARTHUR CC1234 1234
  TOM eil1235 1235
  MIKEZ tb1236 1236
  MATT mb1237 1237
  LIZ TB1238 1238
  PIZ VB1239 1239
  TAN MB1240 1240
  PANDA . 1241
  ;
  run;
  
  %MACRO algo (IN_DS=,VAR_LIST=,DATA_TYPE_LIST=,OUT_DS=);
  DATA &amp;OUT_DS;
  SET &amp;IN_DS;
  
  %If &amp;data_type_LIST = num %then 
  &amp;var_LIST=sum(&amp;VAR_LIST,2);
  %else &amp;var_LIST=cats(&amp;var_LIST,'re');;
  run;
  %mend;
  
  %algo(IN_DS=HAVE,VAR_LIST=CUST_ID,DATA_TYPE_LIST=num,OUT_DS=out1);`
  </code></pre>
  
  <p>I now need to enable this macro to be able to pass multiple values for the macro parameters. Something like this :</p>
  
  <p><code>%algo(IN_DS=HAVE,VAR_LIST='CUST_ID,ACCT_ID',DATA_TYPE_LIST='num,char',OUT_DS=out1);</code>
  Can someone help me enable this functionality in the macro code.</p>