/**
  @file
  @brief Returns the path to the settings file
  @details The settings file location differs by platform:

  @li SASJS - `<apploc>/services/public/settings.sas`
  @li SASMETA - `<apploc>/services/public/Data_Controller_Settings`
  @li SASVIYA - `<apploc>/services/settings.sas`

  Usage:

      %let settingspath=%mpe_getpath2settings();
      %put &=settingspath;

  <h4> SAS Macros </h4>
  @li mf_getapploc.sas
  @li mf_getplatform.sas

**/

%macro mpe_getpath2settings();
%local root platform;
%let root=%mf_getapploc();
%let platform=%mf_getplatform();

%if &platform=SASJS %then %do;
  &root/services/public/settings
%end;
%else %if &platform=SASMETA %then %do;
  &root/services/public/Data_Controller_Settings
%end;
%else %if &platform=SASVIYA %then %do;
  &root/services/settings
%end;

%mend mpe_getpath2settings;
