Loading...
Searching...
No Matches
refreshlibs.sas
Go to the documentation of this file.
1/**
2 @file refreshlibs.sas
3 @brief Refreshes the library data catalog
4 @details Requires membership of the DC administrators group.
5
6 <h4> SAS Macros </h4>
7 @li mpeinit.sas
8 @li mpe_refreshlibs.sas
9 @li mf_getuser.sas
10 @li mpe_getgroups.sas
11 @li mp_abort.sas
12
13 @version 9.3
14 @author 4GL Apps Ltd
15 @copyright 4GL Apps Ltd. This code may only be used within Data Controller
16 and may not be re-distributed or re-sold without the express permission of
17 4GL Apps Ltd.
18
19**/
20
21%mpeinit()
22
23/* check user is in admin group */
24%let cnt=0;
25%mpe_getgroups(user=%mf_getuser(),outds=work.usergroups)
26proc sql noprint;
27select count(*) into:cnt
28 from usergroups
29 where groupname="&mpeadmins";
30%mp_abort(iftrue= (&cnt=0)
31 ,mac=&_program
32 ,msg=%str(This service is only available to &mpeadmins members)
33)
34
35%mpe_refreshlibs()