mirror of
https://github.com/sasjs/core.git
synced 2026-01-15 20:40:05 +00:00
fix: showing filerefs that exist (even when underlying does not) in mf_existfileref, along with 3 tests
This commit is contained in:
8
all.sas
8
all.sas
@@ -133,7 +133,13 @@ options noquotelenmax;
|
||||
%macro mf_existfileref(fref
|
||||
)/*/STORE SOURCE*/;
|
||||
|
||||
%if %sysfunc(fileref(&fref))=0 %then %do;
|
||||
%local rc;
|
||||
%let rc=%sysfunc(fileref(&fref));
|
||||
%if &rc=0 %then %do;
|
||||
1
|
||||
%end;
|
||||
%else %if &rc<0 %then %do;
|
||||
%put &sysmacroname: Fileref &fref exists but the underlying file does not;
|
||||
1
|
||||
%end;
|
||||
%else %do;
|
||||
|
||||
Reference in New Issue
Block a user