20%macro ms_getfile(driveloc
26%local binaryfref floc headref;
27%let binaryfref=%mf_getuniquefileref();
28%let headref=%mf_getuniquefileref();
29%let floc=%sysfunc(pathname(work))/%mf_getuniquename().txt;
30filename &outref
"&floc" lrecl=32767;
31filename &binaryfref
"&floc" recfm=n;
34 file &headref lrecl=1000;
35 infile
"&_sasjs_tokenfile" lrecl=1000;
40proc http method=
'GET' out=&binaryfref headerin=&headref
41 url=
"&_sasjs_apiserverurl/SASjsApi/drive/file?_filePath=&driveloc";
42%
if &mdebug=1 %then %
do;
47filename &binaryfref clear;
48filename &headref clear;