@sasjs/core 4.67.1 → 4.67.3
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_assert.sas
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
)/*/STORE SOURCE*/;
|
|
36
36
|
|
|
37
37
|
data ;
|
|
38
|
-
length
|
|
38
|
+
length test_result $4 test_description $256 test_comments $256;
|
|
39
39
|
test_description=symget('desc');
|
|
40
40
|
test_comments="&sysmacroname: Test result of "!!symget('iftrue');
|
|
41
41
|
%if %eval(%unquote(&iftrue)) %then %do;
|
package/base/mp_assertcols.sas
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
%end;
|
|
109
109
|
|
|
110
110
|
data;
|
|
111
|
-
length
|
|
111
|
+
length test_result $4 test_description $256 test_comments $256;
|
|
112
112
|
test_description=symget('desc');
|
|
113
113
|
if test_description='0'
|
|
114
114
|
then test_description="Testing &inds for existence of &test of: &cols";
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
)
|
|
144
144
|
|
|
145
145
|
data;
|
|
146
|
-
length
|
|
146
|
+
length test_result $4 test_description $256 test_comments $256;
|
|
147
147
|
test_description=symget('desc');
|
|
148
148
|
test_result='FAIL';
|
|
149
149
|
test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
|
package/base/mp_assertdsobs.sas
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
%end;
|
|
88
88
|
|
|
89
89
|
data &ds;
|
|
90
|
-
length
|
|
90
|
+
length test_result $4 test_description $256 test_comments $256;
|
|
91
91
|
test_description=symget('desc');
|
|
92
92
|
test_result='FAIL';
|
|
93
93
|
test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
|
package/base/mp_assertscope.sas
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
%end;
|
|
132
132
|
|
|
133
133
|
data ;
|
|
134
|
-
length
|
|
134
|
+
length test_result $4 test_description $256 test_comments $256;
|
|
135
135
|
test_description=symget('desc');
|
|
136
136
|
test_comments=symget('test_comments');
|
|
137
137
|
test_result=symget('test_result');
|
package/base/mp_init.sas
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
%global
|
|
39
39
|
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
|
|
40
|
+
&prefix.PROCESSMODE &prefix._STPSRV_HEADER_LOC /* SASjs server specific vars*/
|
|
40
41
|
&prefix._FUNCTIONS /* used in mcf_init() to track core function compilation */
|
|
41
42
|
&prefix._INIT_NUM /* initialisation time as numeric */
|
|
42
43
|
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
|
package/base/mp_retainedkey.sas
CHANGED
|
@@ -148,7 +148,8 @@
|
|
|
148
148
|
%mp_abort(iftrue=(&iserr=1),mac=mp_retainedkey,msg=%superq(msg))
|
|
149
149
|
|
|
150
150
|
proc sql noprint;
|
|
151
|
-
select sum(max(&retained_key),0) into: maxkey
|
|
151
|
+
select sum(max(&retained_key),0) format=32. into: maxkey trimmed
|
|
152
|
+
from &base_libds;
|
|
152
153
|
|
|
153
154
|
/**
|
|
154
155
|
* get base table RK and bus field values for lookup
|
|
@@ -217,19 +218,19 @@ quit;
|
|
|
217
218
|
insert into &maxkeytable
|
|
218
219
|
set keytable="&base_libds"
|
|
219
220
|
,keycolumn="&retained_key"
|
|
220
|
-
,max_key=%
|
|
221
|
+
,max_key=%sysevalf(&maxkey+&newkey_cnt)
|
|
221
222
|
,processed_dttm="%sysfunc(datetime(),%mf_fmtdttm())"dt;
|
|
222
223
|
%end;
|
|
223
224
|
%else %do;
|
|
224
225
|
update &maxkeytable
|
|
225
|
-
set max_key=%
|
|
226
|
+
set max_key=%sysevalf(&maxkey+&newkey_cnt)
|
|
226
227
|
,processed_dttm="%sysfunc(datetime(),%mf_fmtdttm())"dt
|
|
227
228
|
where keytable="&base_libds";
|
|
228
229
|
%end;
|
|
229
230
|
%mp_lockanytable(UNLOCK
|
|
230
231
|
,lib=%scan(&maxkeytable,1,.)
|
|
231
232
|
,ds=%scan(&maxkeytable,2,.)
|
|
232
|
-
,ref=Updating maxkeyvalues with maxkey=%
|
|
233
|
+
,ref=Updating maxkeyvalues with maxkey=%sysevalf(&maxkey+&newkey_cnt)
|
|
233
234
|
,ctl_ds=&locktable
|
|
234
235
|
)
|
|
235
236
|
%end;
|
|
@@ -237,7 +238,7 @@ quit;
|
|
|
237
238
|
/* fill in the missing retained key values */
|
|
238
239
|
%let tempvar=%mf_getuniquename();
|
|
239
240
|
data &outds(drop=&tempvar);
|
|
240
|
-
retain &tempvar %
|
|
241
|
+
retain &tempvar %sysevalf(&maxkey+1);
|
|
241
242
|
set &tempds2;
|
|
242
243
|
if &retained_key =. then &retained_key=&tempvar;
|
|
243
244
|
&tempvar=&tempvar+1;
|
package/package.json
CHANGED