@sasjs/core 2.54.0 → 2.54.4
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_copyfolder.sas
CHANGED
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
/* create folders and copy content */
|
|
56
56
|
data _null_;
|
|
57
57
|
set work.&tempds;
|
|
58
|
-
|
|
58
|
+
if _n_ = 1 then dpos+sum(length(directory),2);
|
|
59
|
+
filepath2="&target/"!!substr(filepath,dpos);
|
|
59
60
|
if file_or_folder='folder' then call execute('%mf_mkdir('!!filepath2!!')');
|
|
60
61
|
else do;
|
|
61
62
|
length fref1 fref2 $8;
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
@param [out] pkg= (utils) The output package in which to create the function.
|
|
55
55
|
Uses a 3 part format: libref.catalog.package
|
|
56
56
|
|
|
57
|
+
<h4> SAS Macros </h4>
|
|
58
|
+
@li mf_existfunction.sas
|
|
59
|
+
|
|
57
60
|
**/
|
|
58
61
|
|
|
59
62
|
%macro mcf_stpsrv_header(wrap=NO
|
|
@@ -63,6 +66,8 @@
|
|
|
63
66
|
,pkg=UTILS
|
|
64
67
|
)/*/STORE SOURCE*/;
|
|
65
68
|
|
|
69
|
+
%if %mf_existfunction(stpsrv_header)=1 %then %return;
|
|
70
|
+
|
|
66
71
|
%if &wrap=YES %then %do;
|
|
67
72
|
proc fcmp outcat=&lib..&cat..&pkg;
|
|
68
73
|
%end;
|
package/package.json
CHANGED
package/server/ms_webout.sas
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
%else %if &action=ARR or &action=OBJ %then %do;
|
|
93
93
|
%mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref
|
|
94
|
-
,engine
|
|
94
|
+
,engine=DATASTEP,dbg=%str(&_debug)
|
|
95
95
|
)
|
|
96
96
|
%end;
|
|
97
97
|
%else %if &action=CLOSE %then %do;
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
put " ""&wt"" : {";
|
|
125
125
|
put '"nlobs":' nlobs;
|
|
126
126
|
put ',"nvars":' nvars;
|
|
127
|
-
%mp_jsonout(OBJ,&tempds,jref=&fref,dslabel=colattrs,engine
|
|
128
|
-
%mp_jsonout(OBJ,&wt,jref=&fref,dslabel=first10rows,engine
|
|
127
|
+
%mp_jsonout(OBJ,&tempds,jref=&fref,dslabel=colattrs,engine=DATASTEP)
|
|
128
|
+
%mp_jsonout(OBJ,&wt,jref=&fref,dslabel=first10rows,engine=DATASTEP)
|
|
129
129
|
data _null_; file &fref mod encoding='utf-8';
|
|
130
130
|
put "}";
|
|
131
131
|
%end;
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
autoexec=quote(trim(getoption('autoexec')));
|
|
160
160
|
put ',"AUTOEXEC" : ' autoexec;
|
|
161
161
|
memsize="%sysfunc(INPUTN(%sysfunc(getoption(memsize)), best.),sizekmg.)";
|
|
162
|
+
memsize=quote(cats(memsize));
|
|
162
163
|
put ',"MEMSIZE" : ' memsize;
|
|
163
164
|
put "}" @;
|
|
164
165
|
%if %str(&_debug) ge 131 %then %do;
|