Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
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  @version 9.2
10  @author Allan Bowe
11 **/
12 
13 %macro mf_loc(loc);
14 %let loc=%upcase(&loc);
15 %local root;
16 
17 %if &loc=POF or &loc=PLATFORMOBJECTFRAMEWORK %then %do;
18  %let root=%substr(%sysget(SASROOT),1,%index(%sysget(SASROOT),SASFoundation)-2);
19  %let root=&root/SASPlatformObjectFramework/&sysver;
20  %put Batch tools located at: &root;
21  &root
22 %end;
23 %else %if &loc=VIYACONFIG %then %do;
24  %let root=/opt/sas/viya/config;
25  %put Viya Config located at: &root;
26  &root
27 %end;
28 
29 %mend;