/* -----------------------------------------------------------------------------------------* Macro to extract the path provided from a SAS Studio Custom Step file or folder selector. Input: 1. pathReference: A path reference provided by the file or folder selector control in a SAS Studio Custom step. Output: 1. _sas_folder_path: Set inside macro, a global variable containing the path. *------------------------------------------------------------------------------------------ */ %macro _extract_sas_folder_path(pathReference); %global _sas_folder_path; data _null_; call symput("_sas_folder_path", scan("&pathReference.",2,":","MO")); run; %mend _extract_sas_folder_path;