@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.
- package/base/mp_assertscope.sas +1 -1
- package/package.json +1 -1
- package/server/ms_getfile.sas +11 -2
package/base/mp_assertscope.sas
CHANGED
package/package.json
CHANGED
package/server/ms_getfile.sas
CHANGED
|
@@ -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
|
-
|
|
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=&
|
|
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;
|