/* -----------------------------------------------------------------------------------------* Macro to identify whether a given folder location provided from a SAS Studio Custom Step folder selector happens to be a SAS Content folder or a folder on the filesystem (SAS Server). Input: 1. pathReference: A path reference provided by the file or folder selector control in a SAS Studio Custom step. Output: 1. _path_identifier: Set inside macro, a global variable indicating the prefix of the path provided. *------------------------------------------------------------------------------------------ */ %macro _identify_content_or_server(pathReference); %global _path_identifier; data _null_; call symput("_path_identifier", scan("&pathReference.",1,":","MO")); run; %mend _identify_content_or_server;