mpe_xlmapvalidate.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Validates excel map structure and adds load ref
4  @details Used in staging, prior to the post edit hook
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_xlmapvalidate(mperef,inds,dclib,tgtds);
14 
15  %local ismap;
16  proc sql noprint;
17  select count(*) into: ismap
18  from &dclib..mpe_xlmap_info
19  where XLMAP_TARGETLIBDS="&tgtds" and &dc_dttmtfmt. le TX_TO ;
20 
21  %if "&tgtds"="&dclib..MPE_XLMAP_DATA" or &ismap>0 %then %do;
22  data &inds;
23  set &inds;
24  LOAD_REF="&mperef";
25  run;
26  %end;
27 
28 %mend mpe_xlmapvalidate;