@sasjs/core 6.1.2 → 6.1.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/.sasjslint +12 -3
- package/base/mf_existds.sas +1 -2
- package/base/mf_existfeature.sas +1 -0
- package/base/mf_existfunction.sas +1 -0
- package/base/mf_getattrc.sas +1 -0
- package/base/mf_getattrn.sas +1 -0
- package/base/mf_getengine.sas +1 -2
- package/base/mf_getschema.sas +1 -2
- package/base/mf_mimetype.sas +1 -0
- package/base/mf_verifymacvars.sas +3 -4
- package/base/mf_wordsinstr1andstr2.sas +1 -2
- package/base/mp_applyformats.sas +2 -4
- package/base/mp_derivedvarcheck.sas +200 -0
- package/base/mp_derivedvars.sas +113 -62
- package/base/mp_dictionary.sas +1 -0
- package/base/mp_dirlist.sas +2 -4
- package/base/mp_ds2ddl.sas +7 -5
- package/base/mp_dsmeta.sas +2 -1
- package/base/mp_filtercheck.sas +1 -0
- package/base/mp_filtergenerate.sas +1 -0
- package/base/mp_filterstore.sas +1 -0
- package/base/mp_filtervalidate.sas +1 -3
- package/base/mp_getcols.sas +1 -0
- package/base/mp_getconstraints.sas +1 -0
- package/base/mp_getformats.sas +1 -0
- package/base/mp_getpk.sas +1 -0
- package/base/mp_gitlog.sas +1 -0
- package/base/mp_gitstatus.sas +1 -0
- package/base/mp_guesspk.sas +1 -0
- package/base/mp_include.sas +1 -0
- package/base/mp_lib2cards.sas +1 -0
- package/base/mp_resetoption.sas +1 -0
- package/base/mp_stackdiffs.sas +1 -0
- package/base/mp_tree.sas +1 -0
- package/base/mp_unzip.sas +1 -0
- package/base/mp_wait4file.sas +1 -0
- package/fcmp/mcf_string2file.sas +1 -3
- package/lua/ml_json.sas +1 -0
- package/meta/mm_adduser2group.sas +1 -0
- package/meta/mm_createapplication.sas +1 -4
- package/meta/mm_createdataset.sas +1 -0
- package/meta/mm_createfolder.sas +8 -7
- package/meta/mm_createwebservice.sas +2 -1
- package/meta/mm_getauthinfo.sas +1 -0
- package/meta/mm_getgroupmembers.sas +3 -3
- package/meta/mm_getlibmetadiffs.sas +1 -0
- package/meta/mm_getlibs.sas +2 -4
- package/meta/mm_getobjects.sas +2 -4
- package/meta/mm_getpublictypes.sas +1 -0
- package/meta/mm_getrepos.sas +2 -4
- package/meta/mm_getroles.sas +1 -2
- package/meta/mm_getservercontexts.sas +1 -2
- package/meta/mm_getstpcode.sas +1 -1
- package/meta/mm_getstpinfo.sas +1 -0
- package/meta/mm_gettypes.sas +2 -4
- package/meta/mm_getwebappsrvprops.sas +1 -2
- package/meta/mm_tree.sas +1 -1
- package/metax/mmx_deletemetafolder.sas +1 -0
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +1 -0
- package/server/ms_triggerstp.sas +1 -0
- package/viya/mv_createjob.sas +2 -1
- package/viya/mv_createwebservice.sas +2 -1
- package/viya/mv_deletefoldermember.sas +1 -0
- package/viya/mv_deletejes.sas +1 -0
- package/viya/mv_getclients.sas +1 -0
- package/viya/mv_getfoldermembers.sas +1 -0
- package/viya/mv_getjoblog.sas +4 -7
- package/viya/mv_getjobstate.sas +1 -0
- package/viya/mv_jobflow.sas +1 -0
- package/viya/mv_jobwaitfor.sas +2 -3
- package/viya/mv_registerclient.sas +1 -0
- package/xplatform/mx_execute.sas +1 -0
package/package.json
CHANGED
package/server/ms_triggerstp.sas
CHANGED
package/viya/mv_createjob.sas
CHANGED
|
@@ -63,6 +63,7 @@ https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5p
|
|
|
63
63
|
@version VIYA V.03.04
|
|
64
64
|
@author [Allan Bowe](https://www.linkedin.com/in/allanbowe)
|
|
65
65
|
|
|
66
|
+
@sasjslint {"maxLineLength": 128}
|
|
66
67
|
**/
|
|
67
68
|
|
|
68
69
|
%macro mv_createjob(path=
|
|
@@ -109,7 +110,7 @@ https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5p
|
|
|
109
110
|
|
|
110
111
|
options noquotelenmax;
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
/* remove any trailing slash */
|
|
113
114
|
%if "%substr(&path,%length(&path),1)" = "/" %then
|
|
114
115
|
%let path=%substr(&path,1,%length(&path)-1);
|
|
115
116
|
|
|
@@ -63,6 +63,7 @@ https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5p
|
|
|
63
63
|
@version VIYA V.03.04
|
|
64
64
|
@author Allan Bowe, source: https://github.com/sasjs/core
|
|
65
65
|
|
|
66
|
+
@sasjslint {"maxLineLength": 128}
|
|
66
67
|
**/
|
|
67
68
|
|
|
68
69
|
%macro mv_createwebservice(path=
|
|
@@ -117,7 +118,7 @@ https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5p
|
|
|
117
118
|
|
|
118
119
|
options noquotelenmax;
|
|
119
120
|
|
|
120
|
-
|
|
121
|
+
/* remove any trailing slash */
|
|
121
122
|
%if "%substr(&path,%length(&path),1)" = "/" %then
|
|
122
123
|
%let path=%substr(&path,1,%length(&path)-1);
|
|
123
124
|
|
package/viya/mv_deletejes.sas
CHANGED
package/viya/mv_getclients.sas
CHANGED
package/viya/mv_getjoblog.sas
CHANGED
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
@param [out] outref= The output fileref to which to APPEND the log (is always
|
|
79
79
|
appended).
|
|
80
80
|
|
|
81
|
-
|
|
82
81
|
@version VIYA V.03.04
|
|
83
82
|
@author Allan Bowe, source: https://github.com/sasjs/core
|
|
84
83
|
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
@li mf_getuniquefileref.sas
|
|
91
90
|
@li mf_getuniquelibref.sas
|
|
92
91
|
|
|
93
|
-
@sasjslint {"
|
|
92
|
+
@sasjslint {"maxLineLength": 118}
|
|
94
93
|
**/
|
|
95
94
|
|
|
96
95
|
%macro mv_getjoblog(uri=0,outref=0
|
|
@@ -199,7 +198,7 @@ run;
|
|
|
199
198
|
/* A real loglocation is always a /files/files/<uuid> URI (48+ chars), so
|
|
200
199
|
length<2 unambiguously means the job has no log (empty or SAS missing
|
|
201
200
|
value) - the job likely failed before a compute session was created
|
|
202
|
-
(e.g. 403 on session creation). Read the
|
|
201
|
+
(e.g. 403 on session creation). Read the failure details from the job
|
|
203
202
|
response so the actual failure reason is reported instead of the
|
|
204
203
|
opaque "URI is too short" message. */
|
|
205
204
|
%if &mdebug=1 %then %do;
|
|
@@ -213,7 +212,7 @@ run;
|
|
|
213
212
|
set &libref1..error;
|
|
214
213
|
call symputx('err_httpcode',httpStatusCode,'l');
|
|
215
214
|
call symputx('err_msg',message,'l');
|
|
216
|
-
putlog "&sysmacroname: Job &jobstate -
|
|
215
|
+
putlog "&sysmacroname: Job &jobstate - unexpected response " httpStatusCode ": " message;
|
|
217
216
|
stop;
|
|
218
217
|
run;
|
|
219
218
|
%end;
|
|
@@ -222,7 +221,7 @@ run;
|
|
|
222
221
|
or has zero observations). Include the job URI so the full JSON
|
|
223
222
|
response can be fetched directly via a GET to &base_uri&uri. */
|
|
224
223
|
%let abortmsg=Job &jobstate, no log available. GET &uri;
|
|
225
|
-
%if %length(&err_msg)>0 %then %let abortmsg=Job &jobstate, no log available.
|
|
224
|
+
%if %length(&err_msg)>0 %then %let abortmsg=Job &jobstate, no log available. HTTP &err_httpcode: &err_msg. GET &uri;
|
|
226
225
|
/* A canceled job does not always provide a loglocation (eg a job
|
|
227
226
|
that was aborted by design, or canceled by the server before a
|
|
228
227
|
compute session was created). Aborting here would terminate the
|
|
@@ -344,5 +343,3 @@ run;
|
|
|
344
343
|
%end;
|
|
345
344
|
%mend mv_getjoblog;
|
|
346
345
|
|
|
347
|
-
|
|
348
|
-
|
package/viya/mv_getjobstate.sas
CHANGED
package/viya/mv_jobflow.sas
CHANGED
package/viya/mv_jobwaitfor.sas
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
| completed | no | Job finished - does not mean it was successful. Check stateDetails|
|
|
15
15
|
| failed | no | Job failed to execute, could be a problem when calling the apis|
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
## Example
|
|
19
18
|
|
|
20
19
|
First, compile the macros:
|
|
@@ -102,7 +101,7 @@
|
|
|
102
101
|
@li mf_nobs.sas
|
|
103
102
|
@li mv_getjoblog.sas
|
|
104
103
|
|
|
105
|
-
@sasjslint {"
|
|
104
|
+
@sasjslint {"maxLineLength": 109}
|
|
106
105
|
**/
|
|
107
106
|
|
|
108
107
|
%macro mv_jobwaitfor(action
|
|
@@ -167,7 +166,7 @@ data _null_;
|
|
|
167
166
|
job uri (whose root object carries the state field), and
|
|
168
167
|
downstream consumers (mv_getjoblog, the outds) expect the plain
|
|
169
168
|
job uri. Do not truncate: job uris are not a fixed length (a
|
|
170
|
-
definition uri passed in
|
|
169
|
+
definition uri passed in by mistake must fail loudly, not be silently
|
|
171
170
|
corrupted into a 404). */
|
|
172
171
|
if length(strip(uri))>6 and substr(strip(uri),length(strip(uri))-5)='/state'
|
|
173
172
|
then uri=substr(strip(uri),1,length(strip(uri))-6);
|