Loading...
Searching...
No Matches
dc_refreshcatalog.sas
Go to the documentation of this file.
1/**
2 @file dc_refreshcatalog.sas
3 @brief Refresh catalog
4 @details There are two versions of this macro - a META and a VIYA version (in
5 different folders). The interfaces are the same. This version is VIYA.
6
7 The MPELIB should be pre-assigned
8
9 <h4> SAS Macros </h4>
10 @li mpe_refreshlibs.sas
11 @li dc_assignlib.sas
12 @li mpe_refreshtables.sas
13 @li mpe_refreshcatalogs.sas
14
15
16 @version 3.4
17 @author 4GL Apps Ltd
18 @copyright 4GL Apps Ltd. This code may only be used within Data Controller
19 and may not be re-distributed or re-sold without the express permission of
20 4GL Apps Ltd.
21**/
22
23%macro dc_refreshcatalog(libref);
24
25%if #&libref# ne ## %then %do;
26 %put &sysmacroname: assigning specific libref, &libref;
27 %dc_assignlib(WRITE,&libref) /* write just in order to assign direct lib */
28 %mpe_refreshlibs(lib=&libref)
29 %mpe_refreshtables(&libref)
30 %mpe_refreshcatalogs(&libref)
31%end;
32%else %do;
33 %mpe_refreshlibs()
34 filename executor catalog 'work.code.code.source';
35 data libraries;
36 set &mpelib..mpe_datacatalog_libs;
37 where &dc_dttmtfmt. le TX_TO;
38 file executor;
39 str=cats('%mpe_refreshtables(',libref,')');
40 put str;
41 str=cats('%mpe_refreshcatalogs(',libref,')');
42 put str;
43 putlog str;
44 run;
45 %inc executor;
46%end;
47
48%mend dc_refreshcatalog;