Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_loc.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Returns physical location of various SAS items
4 @details Returns location of the PlatformObjectFramework tools
5 Usage:
6
7 %put %mf_loc(POF); %*location of PlatformObjectFramework tools;
8
9 @param [in] loc The item to locate, eg:
10 @li PLAATFORMOBJECTFRAMEWORK (or POF)
11 @li VIYACONFG
12
13 @version 9.2
14 @author Allan Bowe
15**/
16
17%macro mf_loc(loc);
18%let loc=%upcase(&loc);
19%local root;
20
21%if &loc=POF or &loc=PLATFORMOBJECTFRAMEWORK %then %do;
22 %let root=%sysget(SASROOT);
23 %let root=%substr(&root,1,%index(&root,SASFoundation)-2);
24 %let root=&root/SASPlatformObjectFramework/&sysver;
25 %put Batch tools located at: &root;
26 &root
27%end;
28%else %if &loc=VIYACONFIG %then %do;
29 %let root=/opt/sas/viya/config;
30 %put Viya Config located at: &root;
31 &root
32%end;
33
34%mend mf_loc;