@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.
Files changed (73) hide show
  1. package/.sasjslint +12 -3
  2. package/base/mf_existds.sas +1 -2
  3. package/base/mf_existfeature.sas +1 -0
  4. package/base/mf_existfunction.sas +1 -0
  5. package/base/mf_getattrc.sas +1 -0
  6. package/base/mf_getattrn.sas +1 -0
  7. package/base/mf_getengine.sas +1 -2
  8. package/base/mf_getschema.sas +1 -2
  9. package/base/mf_mimetype.sas +1 -0
  10. package/base/mf_verifymacvars.sas +3 -4
  11. package/base/mf_wordsinstr1andstr2.sas +1 -2
  12. package/base/mp_applyformats.sas +2 -4
  13. package/base/mp_derivedvarcheck.sas +200 -0
  14. package/base/mp_derivedvars.sas +113 -62
  15. package/base/mp_dictionary.sas +1 -0
  16. package/base/mp_dirlist.sas +2 -4
  17. package/base/mp_ds2ddl.sas +7 -5
  18. package/base/mp_dsmeta.sas +2 -1
  19. package/base/mp_filtercheck.sas +1 -0
  20. package/base/mp_filtergenerate.sas +1 -0
  21. package/base/mp_filterstore.sas +1 -0
  22. package/base/mp_filtervalidate.sas +1 -3
  23. package/base/mp_getcols.sas +1 -0
  24. package/base/mp_getconstraints.sas +1 -0
  25. package/base/mp_getformats.sas +1 -0
  26. package/base/mp_getpk.sas +1 -0
  27. package/base/mp_gitlog.sas +1 -0
  28. package/base/mp_gitstatus.sas +1 -0
  29. package/base/mp_guesspk.sas +1 -0
  30. package/base/mp_include.sas +1 -0
  31. package/base/mp_lib2cards.sas +1 -0
  32. package/base/mp_resetoption.sas +1 -0
  33. package/base/mp_stackdiffs.sas +1 -0
  34. package/base/mp_tree.sas +1 -0
  35. package/base/mp_unzip.sas +1 -0
  36. package/base/mp_wait4file.sas +1 -0
  37. package/fcmp/mcf_string2file.sas +1 -3
  38. package/lua/ml_json.sas +1 -0
  39. package/meta/mm_adduser2group.sas +1 -0
  40. package/meta/mm_createapplication.sas +1 -4
  41. package/meta/mm_createdataset.sas +1 -0
  42. package/meta/mm_createfolder.sas +8 -7
  43. package/meta/mm_createwebservice.sas +2 -1
  44. package/meta/mm_getauthinfo.sas +1 -0
  45. package/meta/mm_getgroupmembers.sas +3 -3
  46. package/meta/mm_getlibmetadiffs.sas +1 -0
  47. package/meta/mm_getlibs.sas +2 -4
  48. package/meta/mm_getobjects.sas +2 -4
  49. package/meta/mm_getpublictypes.sas +1 -0
  50. package/meta/mm_getrepos.sas +2 -4
  51. package/meta/mm_getroles.sas +1 -2
  52. package/meta/mm_getservercontexts.sas +1 -2
  53. package/meta/mm_getstpcode.sas +1 -1
  54. package/meta/mm_getstpinfo.sas +1 -0
  55. package/meta/mm_gettypes.sas +2 -4
  56. package/meta/mm_getwebappsrvprops.sas +1 -2
  57. package/meta/mm_tree.sas +1 -1
  58. package/metax/mmx_deletemetafolder.sas +1 -0
  59. package/package.json +1 -1
  60. package/server/ms_createwebservice.sas +1 -0
  61. package/server/ms_triggerstp.sas +1 -0
  62. package/viya/mv_createjob.sas +2 -1
  63. package/viya/mv_createwebservice.sas +2 -1
  64. package/viya/mv_deletefoldermember.sas +1 -0
  65. package/viya/mv_deletejes.sas +1 -0
  66. package/viya/mv_getclients.sas +1 -0
  67. package/viya/mv_getfoldermembers.sas +1 -0
  68. package/viya/mv_getjoblog.sas +4 -7
  69. package/viya/mv_getjobstate.sas +1 -0
  70. package/viya/mv_jobflow.sas +1 -0
  71. package/viya/mv_jobwaitfor.sas +2 -3
  72. package/viya/mv_registerclient.sas +1 -0
  73. package/xplatform/mx_execute.sas +1 -0
@@ -19,6 +19,7 @@
19
19
  @version 9.4
20
20
  @author Allan Bowe
21
21
 
22
+ @sasjslint {"maxLineLength": 123}
22
23
  **/
23
24
 
24
25
  %macro mmx_deletemetafolder(loc=,user=,pass=);
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "@nogoo9/gitleaks": "8.30.1-post.2"
45
45
  },
46
- "version": "6.1.2"
46
+ "version": "6.1.4"
47
47
  }
@@ -52,6 +52,7 @@
52
52
  @version 9.2
53
53
  @author Allan Bowe
54
54
 
55
+ @sasjslint {"maxLineLength": 93}
55
56
  **/
56
57
 
57
58
  %macro ms_createwebservice(path=0
@@ -45,6 +45,7 @@
45
45
  @li mp_dropmembers.sas
46
46
  @li mf_nobs.sas
47
47
 
48
+ @sasjslint {"maxLineLength": 83}
48
49
  **/
49
50
 
50
51
  %macro ms_triggerstp(pgm
@@ -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
- * remove any trailing slash ;
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
- * remove any trailing slash ;
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
 
@@ -31,6 +31,7 @@
31
31
  @li mf_getuniquelibref.sas
32
32
  @li mf_isblank.sas
33
33
 
34
+ @sasjslint {"maxLineLength": 82}
34
35
  **/
35
36
 
36
37
  %macro mv_deletefoldermember(path=
@@ -30,6 +30,7 @@
30
30
  @li mf_getuniquelibref.sas
31
31
  @li mf_isblank.sas
32
32
 
33
+ @sasjslint {"maxLineLength": 82}
33
34
  **/
34
35
 
35
36
  %macro mv_deletejes(path=
@@ -36,6 +36,7 @@
36
36
  @li mf_getuniquelibref.sas
37
37
  @li mf_loc.sas
38
38
 
39
+ @sasjslint {"maxLineLength": 102}
39
40
  **/
40
41
 
41
42
  %macro mv_getclients(outds=work.mv_getclients
@@ -37,6 +37,7 @@
37
37
  @li mv_deleteviyafolder.sas
38
38
  @li mv_getfoldermembers.test.sas
39
39
 
40
+ @sasjslint {"maxLineLength": 230}
40
41
  **/
41
42
 
42
43
  %macro mv_getfoldermembers(root=/
@@ -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 {"noBannedStrings": false}
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 error details from the job
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 - error " httpStatusCode ": " message;
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. Error &err_httpcode: &err_msg. GET &uri;
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
-
@@ -87,6 +87,7 @@
87
87
  @li mf_getplatform.sas
88
88
  @li mf_getuniquefileref.sas
89
89
 
90
+ @sasjslint {"maxLineLength": 102}
90
91
  **/
91
92
 
92
93
  %macro mv_getjobstate(uri=0,outds=work.mv_getjobstate
@@ -126,6 +126,7 @@
126
126
  @li mv_jobwaitfor.sas
127
127
  @li mv_jobexecute.sas
128
128
 
129
+ @sasjslint {"maxLineLength": 98}
129
130
  **/
130
131
 
131
132
  %macro mv_jobflow(inds=0,outds=work.mv_jobflow
@@ -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 {"noBannedStrings": false}
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 error must fail loudly, not be silently
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);
@@ -83,6 +83,7 @@
83
83
  @li mf_getuser.sas
84
84
  @li mp_abort.sas
85
85
 
86
+ @sasjslint {"maxLineLength": 82}
86
87
  **/
87
88
 
88
89
  %macro mv_registerclient(client_id=
@@ -61,6 +61,7 @@
61
61
  @version 9.4
62
62
  @author Allan Bowe
63
63
 
64
+ @sasjslint {"maxLineLength": 95}
64
65
  **/
65
66
 
66
67
  %macro mx_execute(program,