@sasjs/core 7.1.11 → 7.1.12
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_zip.sas +5 -2
- package/package.json +1 -1
package/base/mp_zip.sas
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
as well).
|
|
14
14
|
|
|
15
15
|
<h4> SAS Macros </h4>
|
|
16
|
+
@li mf_getuniquename.sas
|
|
16
17
|
@li mp_dirlist.sas
|
|
17
18
|
|
|
18
19
|
@param [in] in= unquoted filepath, dataset of files or directory to zip
|
|
@@ -52,8 +53,10 @@ ods package open nopf;
|
|
|
52
53
|
ods package add file="&in" mimetype="application/x-compress";
|
|
53
54
|
%end;
|
|
54
55
|
%else %if &type=DIRECTORY %then %do;
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
/* a literal outds of _data_ makes mp_dirlist create "data _data_" which SAS
|
|
57
|
+
reads as the last dataset in the session - give it a real unique name */
|
|
58
|
+
%let ds=%mf_getuniquename(prefix=mpzip);
|
|
59
|
+
%mp_dirlist(path=&in,outds=&ds)
|
|
57
60
|
data _null_;
|
|
58
61
|
set &ds;
|
|
59
62
|
length __command $4000;
|
package/package.json
CHANGED