getstagetable.sas
Go to the documentation of this file.
1 /**
2  @file getstagetable.sas
3  @brief Retrieves the actual table that is being sent for update
4  @details
5 
6  <h4> SAS Macros </h4>
7  @li mf_getvalue.sas
8  @li mp_abort.sas
9 
10  @version 9.2
11  @author 4GL Apps Ltd
12  @copyright 4GL Apps Ltd. This code may only be used within Data Controller
13  and may not be re-distributed or re-sold without the express permission of
14  4GL Apps Ltd.
15 
16 **/
17 %mpeinit()
18 
19 %let table_id=%mf_getvalue(work.iwant,table_id);
20 libname loc "&mpelocapprovals/&table_id";
21 data stagetable;
22  set loc.&table_id;
23 run;
24 
25 %mp_abort(iftrue= (&syscc ne 0)
26  ,mac=&_program..sas
27  ,msg=%str(syscc=&syscc)
28 )
29 
30 %webout(OPEN)
31 %webout(OBJ,stagetable,missing=STRING)
32 %webout(CLOSE)
33 
34 
35 %mpeterm()