32%macro mfv_getpathuri(filepath
35 %local fref rc path name var ;
37 %
if &syscc ne 0 %then %
do;
38 %put %str(ERR)OR: mfv_getpathuri.sas cannot execute with syscc=&syscc;
42 %let fref=%mf_getuniquefileref();
43 %let name=%scan(&filepath,-1,/);
44 %let path=%substr(&filepath,1,%length(&filepath)-%length(&name)-1);
46 %
if %sysfunc(filename(fref,,filesrvc,folderPath=
"&path" filename=
"&name"))=0
48 %let var=_FILESRVC_&fref._URI;
50 %let rc=%sysfunc(filename(fref));
54 %put &sysmacroname: did not find &filepath;