mpe_getvars.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Takes a input table and makes every variable a macro variable
4  @details If table has multiple records, only first record is used.
5 
6  @version 9.2
7  @author 4GL Apps Ltd
8  @copyright 4GL Apps Ltd. This code may only be used within Data Controller
9  and may not be re-distributed or re-sold without the express permission of
10  4GL Apps Ltd.
11 **/
12 
13 %macro mpe_getvars(injs,outds);
14  /* load parameters */
15  data _null_;
16  __dummychar='';__dummynum=0;
17  set &outds;
18  array __charvals _character_;
19  do over __charvals;
20  call symputx(vname(__charvals),__charvals,'g');
21  end;
22  array __numvals _numeric_;
23  do over __numvals;
24  call symputx(vname(__numvals),__numvals,'g');
25  end;
26  run;
27 %mend mpe_getvars;