@sasjs/core 5.5.1 → 5.6.0
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/mf_existvarlist.sas +3 -0
- package/base/mp_chop.sas +1 -1
- package/base/mp_distinctfmtvalues.sas +4 -0
- package/base/mp_filterstore.sas +15 -2
- package/base/mp_getpk.sas +1 -0
- package/base/mp_makedata.sas +0 -1
- package/base/mp_perflog.sas +3 -0
- package/base/mp_retainedkey.sas +0 -1
- package/base/mp_rowhash.sas +3 -0
- package/base/mp_stackdiffs.sas +1 -0
- package/base/mp_unzip.sas +0 -1
- package/meta/mm_createdataset.sas +1 -0
- package/meta/mm_createlibrary.sas +1 -0
- package/meta/mm_getstps.sas +1 -0
- package/meta/mm_webout.sas +1 -0
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +0 -1
- package/server/ms_testservice.sas +0 -2
- package/viya/mv_createfile.sas +1 -0
- package/viya/mv_getjobresult.sas +2 -0
- package/viya/mv_getviyafileextparms.sas +0 -2
- package/viya/mv_jobwaitfor.sas +9 -0
- package/xplatform/mx_append2pgm.sas +0 -1
- package/xplatform/mx_createjob.sas +1 -0
- package/xplatform/mx_execute.sas +1 -1
package/base/mf_existvarlist.sas
CHANGED
package/base/mp_chop.sas
CHANGED
package/base/mp_filterstore.sas
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
@param [in] libds= The target dataset to be filtered (lib should be assigned).
|
|
17
17
|
If filtering a format catalog, add the following suffix: `-FC`.
|
|
18
|
+
@param [in] targetds= (&libds) The dataset against which VARIABLE_NM values
|
|
19
|
+
are validated. Defaults to &libds, which is the correct behaviour for
|
|
20
|
+
physical columns. Supply a view that adds computed columns when the filter
|
|
21
|
+
may reference variables that do not exist in the physical table - the
|
|
22
|
+
filter is still stored against &libds.
|
|
18
23
|
@param [in] queryds= (WORK.FILTERQUERY) The temporary input query dataset to
|
|
19
24
|
be validated. Has the following format:
|
|
20
25
|
|GROUP_LOGIC:$3|SUBGROUP_LOGIC:$3|SUBGROUP_ID:8.|VARIABLE_NM:$32|OPERATOR_NM:$10|RAW_VALUE:$32767|
|
|
@@ -60,6 +65,7 @@
|
|
|
60
65
|
@li mp_filtercheck.sas
|
|
61
66
|
@li mp_hashdataset.sas
|
|
62
67
|
@li mp_retainedkey.sas
|
|
68
|
+
@li mp_lockanytable.sas
|
|
63
69
|
|
|
64
70
|
<h4> Related Macros </h4>
|
|
65
71
|
@li mp_filtercheck.sas
|
|
@@ -73,6 +79,7 @@
|
|
|
73
79
|
**/
|
|
74
80
|
|
|
75
81
|
%macro mp_filterstore(libds=,
|
|
82
|
+
targetds=,
|
|
76
83
|
queryds=work.filterquery,
|
|
77
84
|
filter_summary=PERM.FILTER_SUMMARY,
|
|
78
85
|
filter_detail=PERM.FILTER_DETAIL,
|
|
@@ -85,7 +92,7 @@
|
|
|
85
92
|
%put &sysmacroname entry vars:;
|
|
86
93
|
%put _local_;
|
|
87
94
|
|
|
88
|
-
%local ds0 ds1 ds2 ds3 ds4 filter_hash orig_libds;
|
|
95
|
+
%local ds0 ds1 ds2 ds3 ds4 filter_hash orig_libds targetds_used;
|
|
89
96
|
%let libds=%upcase(&libds);
|
|
90
97
|
%let orig_libds=&libds;
|
|
91
98
|
|
|
@@ -122,7 +129,13 @@
|
|
|
122
129
|
%mddl_sas_cntlout(libds=&ds0)
|
|
123
130
|
|
|
124
131
|
%end;
|
|
125
|
-
|
|
132
|
+
|
|
133
|
+
/* the validation target defaults to the (possibly rewritten) libds, so that
|
|
134
|
+
computed columns can be validated against a view when required */
|
|
135
|
+
%if %length(&targetds)>0 %then %let targetds_used=&targetds;
|
|
136
|
+
%else %let targetds_used=&libds;
|
|
137
|
+
|
|
138
|
+
%mp_filtercheck(&queryds,targetds=&targetds_used,abort=YES)
|
|
126
139
|
|
|
127
140
|
/* hash the result */
|
|
128
141
|
%let ds1=%mf_getuniquename(prefix=hashds);
|
package/base/mp_getpk.sas
CHANGED
package/base/mp_makedata.sas
CHANGED
package/base/mp_perflog.sas
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
@param [in] libds= (work.mp_perflog) Provide a dataset in which to store
|
|
16
16
|
performance stats. Default name is <code>work.mp_perflog</code>;
|
|
17
17
|
|
|
18
|
+
<h4> SAS Macros </h4>
|
|
19
|
+
@li mf_existds.sas
|
|
20
|
+
|
|
18
21
|
@version 9.2
|
|
19
22
|
@author Allan Bowe
|
|
20
23
|
@source https://github.com/sasjs/core
|
package/base/mp_retainedkey.sas
CHANGED
package/base/mp_rowhash.sas
CHANGED
package/base/mp_stackdiffs.sas
CHANGED
package/base/mp_unzip.sas
CHANGED
package/meta/mm_getstps.sas
CHANGED
package/meta/mm_webout.sas
CHANGED
package/package.json
CHANGED
package/viya/mv_createfile.sas
CHANGED
package/viya/mv_getjobresult.sas
CHANGED
package/viya/mv_jobwaitfor.sas
CHANGED
|
@@ -81,6 +81,15 @@
|
|
|
81
81
|
@param [out] outref= A fileref to which the spawned job logs should be
|
|
82
82
|
appended.
|
|
83
83
|
|
|
84
|
+
<h4> SAS Macros </h4>
|
|
85
|
+
@li mp_abort.sas
|
|
86
|
+
@li mf_existvar.sas
|
|
87
|
+
@li mf_nobs.sas
|
|
88
|
+
@li mf_getplatform.sas
|
|
89
|
+
@li mf_getuniquefileref.sas
|
|
90
|
+
@li mf_getuniquelibref.sas
|
|
91
|
+
@li mv_getjoblog.sas
|
|
92
|
+
|
|
84
93
|
@version VIYA V.03.04
|
|
85
94
|
@author Allan Bowe, source: https://github.com/sasjs/core
|
|
86
95
|
|
package/xplatform/mx_execute.sas
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
@li mf_getuniquename.sas
|
|
39
39
|
@li mp_abort.sas
|
|
40
40
|
@li mp_binarycopy.sas
|
|
41
|
-
@li mp_chop.sas
|
|
42
41
|
@li mp_ds2csv.sas
|
|
43
42
|
@li ms_testservice.sas
|
|
44
43
|
@li mv_getjobresult.sas
|
|
45
44
|
@li mv_jobflow.sas
|
|
45
|
+
@li mf_nobs.sas
|
|
46
46
|
|
|
47
47
|
<h4> Related Programs </h4>
|
|
48
48
|
@li mx_execute.test.sas
|