@sasjs/core 4.16.0 → 4.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/mp_dirlist.sas +8 -7
- package/package.json +1 -1
package/base/mp_dirlist.sas
CHANGED
|
@@ -94,6 +94,13 @@ data &out_ds(compress=no
|
|
|
94
94
|
%end;
|
|
95
95
|
if rc = 0 then do;
|
|
96
96
|
did = dopen(fref);
|
|
97
|
+
if did=0 then do;
|
|
98
|
+
putlog "NOTE: This directory is empty, or does not exist - &path";
|
|
99
|
+
msg=sysmsg();
|
|
100
|
+
put msg;
|
|
101
|
+
put _all_;
|
|
102
|
+
stop;
|
|
103
|
+
end;
|
|
97
104
|
/* attribute is OS-dependent - could be "Directory" or "Directory Name" */
|
|
98
105
|
numopts=doptnum(did);
|
|
99
106
|
do i=1 to numopts;
|
|
@@ -101,12 +108,6 @@ data &out_ds(compress=no
|
|
|
101
108
|
if foption=:'Directory' then i=numopts;
|
|
102
109
|
end;
|
|
103
110
|
directory=dinfo(did,foption);
|
|
104
|
-
if did=0 then do;
|
|
105
|
-
putlog "NOTE: This directory is empty - " directory;
|
|
106
|
-
msg=sysmsg();
|
|
107
|
-
put _all_;
|
|
108
|
-
stop;
|
|
109
|
-
end;
|
|
110
111
|
rc = filename(fref);
|
|
111
112
|
end;
|
|
112
113
|
else do;
|
|
@@ -242,4 +243,4 @@ run;
|
|
|
242
243
|
proc sql;
|
|
243
244
|
drop table &out_ds;
|
|
244
245
|
|
|
245
|
-
%mend mp_dirlist;
|
|
246
|
+
%mend mp_dirlist;
|
package/package.json
CHANGED