@sasjs/core 7.1.11 → 7.1.13

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 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
- %mp_dirlist(path=&in,outds=_data_)
56
- %let ds=&syslast;
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;
@@ -10,6 +10,12 @@
10
10
  **/
11
11
 
12
12
  %macro ml_gsubfile();
13
+ /* a narrow LRECL truncates the wide lines of the library as they
14
+ are written, so widen it for the write as well as the include */
15
+ %local optval;
16
+ %let optval=%sysfunc(getoption(lrecl));
17
+ options lrecl=1024;
18
+
13
19
  data _null_;
14
20
  file "%sysfunc(pathname(work))/ml_gsubfile.lua";
15
21
  put 'local fpath, outpath, file, fcontent ';
@@ -39,11 +45,6 @@ data _null_;
39
45
  put 'io.close(file) ';
40
46
  run;
41
47
 
42
- /* ensure big enough lrecl to avoid lua compilation issues */
43
- %local optval;
44
- %let optval=%sysfunc(getoption(lrecl));
45
- options lrecl=1024;
46
-
47
48
  /* execute the lua code by using a .lua extension */
48
49
  %inc "%sysfunc(pathname(work))/ml_gsubfile.lua" /source2;
49
50
 
package/lua/ml_json.sas CHANGED
@@ -11,6 +11,12 @@
11
11
  **/
12
12
 
13
13
  %macro ml_json();
14
+ /* a narrow LRECL truncates the wide lines of the library as they
15
+ are written, so widen it for the write as well as the include */
16
+ %local optval;
17
+ %let optval=%sysfunc(getoption(lrecl));
18
+ options lrecl=1024;
19
+
14
20
  data _null_;
15
21
  file "%sysfunc(pathname(work))/ml_json.lua";
16
22
  put '-- NOTE - THE COPYRIGHT BELOW IS IN RELATION TO THE JSON.LUA FILE ONLY ';
@@ -390,11 +396,6 @@ data _null_;
390
396
  put '-- JSON.LUA ENDS HERE ';
391
397
  run;
392
398
 
393
- /* ensure big enough lrecl to avoid lua compilation issues */
394
- %local optval;
395
- %let optval=%sysfunc(getoption(lrecl));
396
- options lrecl=1024;
397
-
398
399
  /* execute the lua code by using a .lua extension */
399
400
  %inc "%sysfunc(pathname(work))/ml_json.lua" /source2;
400
401
 
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "devDependencies": {
55
55
  "@nogoo9/gitleaks": "8.30.1-post.2"
56
56
  },
57
- "version": "7.1.11"
57
+ "version": "7.1.13"
58
58
  }