@sasjs/core 4.18.6 → 4.18.7

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.
@@ -106,7 +106,7 @@
106
106
 
107
107
  proc compare
108
108
  base=&scopeds(where=(upcase(name) not in (%mf_getquotedstr(&ilist))))
109
- compare=&ds;
109
+ compare=&ds noprint;
110
110
  run;
111
111
 
112
112
  %if &sysinfo=0 %then %do;
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "@sasjs/cli": "3.6.0",
37
37
  "@sasjs/core": "4.4.7"
38
38
  },
39
- "version": "4.18.6"
39
+ "version": "4.18.7"
40
40
  }
@@ -11,6 +11,9 @@
11
11
  @param [out] outref= (msgetfil) The fileref to contain the file.
12
12
  @param [in] mdebug= (0) Set to 1 to enable DEBUG messages
13
13
 
14
+ <h4> SAS Macros </h4>
15
+ @li mf_getuniquefileref.sas
16
+ @li mf_getuniquename.sas
14
17
 
15
18
  **/
16
19
 
@@ -19,14 +22,20 @@
19
22
  ,mdebug=0
20
23
  );
21
24
 
22
- filename &outref temp;
25
+ /* use the recfm in a separate fileref to avoid issues with subsequent reads */
26
+ %local binaryfref floc;
27
+ %let binaryfref=%mf_getuniquefileref();
28
+ %let floc=%sysfunc(pathname(work))/%mf_getuniquename().txt;
29
+ filename &outref "&floc";
30
+ filename &binaryfref "&floc" recfm=n;
23
31
 
24
- proc http method='GET' out=&outref
32
+ proc http method='GET' out=&binaryfref
25
33
  url="&_sasjs_apiserverurl/SASjsApi/drive/file?_filePath=&driveloc";
26
34
  %if &mdebug=1 %then %do;
27
35
  debug level=2;
28
36
  %end;
29
37
  run;
30
38
 
39
+ filename &binaryfref clear;
31
40
 
32
41
  %mend ms_getfile;