@sasjs/core 6.1.2 → 6.1.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.
Files changed (70) hide show
  1. package/.sasjslint +11 -4
  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 +2 -0
  18. package/base/mp_dsmeta.sas +1 -0
  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 +1 -0
  43. package/meta/mm_createwebservice.sas +1 -0
  44. package/meta/mm_getauthinfo.sas +1 -0
  45. package/meta/mm_getlibmetadiffs.sas +1 -0
  46. package/meta/mm_getlibs.sas +1 -3
  47. package/meta/mm_getobjects.sas +1 -3
  48. package/meta/mm_getpublictypes.sas +1 -0
  49. package/meta/mm_getrepos.sas +1 -3
  50. package/meta/mm_getroles.sas +1 -2
  51. package/meta/mm_getservercontexts.sas +1 -2
  52. package/meta/mm_getstpinfo.sas +1 -0
  53. package/meta/mm_gettypes.sas +1 -3
  54. package/meta/mm_getwebappsrvprops.sas +1 -2
  55. package/metax/mmx_deletemetafolder.sas +1 -0
  56. package/package.json +1 -1
  57. package/server/ms_createwebservice.sas +1 -0
  58. package/server/ms_triggerstp.sas +1 -0
  59. package/viya/mv_createjob.sas +1 -0
  60. package/viya/mv_createwebservice.sas +1 -0
  61. package/viya/mv_deletefoldermember.sas +1 -0
  62. package/viya/mv_deletejes.sas +1 -0
  63. package/viya/mv_getclients.sas +1 -0
  64. package/viya/mv_getfoldermembers.sas +1 -0
  65. package/viya/mv_getjoblog.sas +4 -7
  66. package/viya/mv_getjobstate.sas +1 -0
  67. package/viya/mv_jobflow.sas +1 -0
  68. package/viya/mv_jobwaitfor.sas +2 -3
  69. package/viya/mv_registerclient.sas +1 -0
  70. package/xplatform/mx_execute.sas +1 -0
@@ -61,6 +61,7 @@
61
61
  @li mp_getpk.sas
62
62
  @li mp_guesspk.sas
63
63
 
64
+ @sasjslint {"maxLineLength": 95}
64
65
  **/
65
66
 
66
67
  %macro mp_dsmeta(libds,outds=work.dsmeta);
@@ -62,6 +62,7 @@
62
62
  @author Allan Bowe
63
63
 
64
64
  @todo Support hex / name literals and exponents in RAW_VALUE field
65
+ @sasjslint {"maxLineLength": 99}
65
66
  **/
66
67
 
67
68
  %macro mp_filtercheck(inds,targetds=,outds=work.badrecords,abort=YES);
@@ -65,6 +65,7 @@
65
65
  @version 9.3
66
66
  @author Allan Bowe
67
67
 
68
+ @sasjslint {"maxLineLength": 99}
68
69
  **/
69
70
 
70
71
  %macro mp_filtergenerate(inds,outref=filter);
@@ -76,6 +76,7 @@
76
76
  @version 9.2
77
77
  @author [Allan Bowe](https://www.linkedin.com/in/allanbowe)
78
78
 
79
+ @sasjslint {"maxLineLength": 167}
79
80
  **/
80
81
 
81
82
  %macro mp_filterstore(libds=,
@@ -25,7 +25,6 @@
25
25
 
26
26
  %mp_filtervalidate(myfilter,sashelp.class)
27
27
 
28
-
29
28
  @returns The SYSCC value will be 1008 if there are validation issues.
30
29
 
31
30
  @param [in] inref The input fileref to validate (generated by
@@ -33,7 +32,7 @@
33
32
  @param [in] targetds The target dataset against which to verify the query
34
33
  @param [out] abort= (YES) If YES will call mp_abort.sas on any exceptions
35
34
  @param [out] outds= (work.mp_filtervalidate) Output dataset containing the
36
- err / warning message, if one exists. If this table contains any rows,
35
+ diagnostic message, if one exists. If this table contains any rows,
37
36
  there are problems!
38
37
 
39
38
  <h4> SAS Macros </h4>
@@ -48,7 +47,6 @@
48
47
  @version 9.3
49
48
  @author Allan Bowe
50
49
 
51
- @sasjslint {"noBannedStrings": false}
52
50
  **/
53
51
 
54
52
  %macro mp_filtervalidate(inref,targetds,abort=YES,outds=work.mp_filtervalidate);
@@ -32,6 +32,7 @@
32
32
  @version 9.2
33
33
  @author Allan Bowe
34
34
 
35
+ @sasjslint {"maxLineLength": 94}
35
36
  **/
36
37
 
37
38
  %macro mp_getcols(ds, outds=work.cols);
@@ -29,6 +29,7 @@
29
29
  @version 9.2
30
30
  @author Allan Bowe
31
31
 
32
+ @sasjslint {"maxLineLength": 123}
32
33
  **/
33
34
 
34
35
  %macro mp_getconstraints(lib=WORK
@@ -62,6 +62,7 @@ https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#
62
62
  @version 9.2
63
63
  @author Allan Bowe
64
64
 
65
+ @sasjslint {"maxLineLength": 237}
65
66
  **/
66
67
 
67
68
  %macro mp_getformats(lib=0
package/base/mp_getpk.sas CHANGED
@@ -47,6 +47,7 @@
47
47
 
48
48
  @version 9.3
49
49
  @author Macro People Ltd
50
+ @sasjslint {"maxLineLength": 118}
50
51
  **/
51
52
 
52
53
  %macro mp_getpk(
@@ -49,6 +49,7 @@ https://documentation.sas.com/doc/ko/pgmsascdc/v_033/lefunctionsref/n1qo5miyvry1
49
49
  @li mp_gitreleaseinfo.sas
50
50
  @li mp_gitstatus.sas
51
51
 
52
+ @sasjslint {"maxLineLength": 100}
52
53
  **/
53
54
 
54
55
  %macro mp_gitlog(gitdir,outds=work.mp_gitlog,mdebug=0,filter=BRANCHONLY,nobs=0);
@@ -34,6 +34,7 @@
34
34
  @li mp_gitstatus.test.sas
35
35
  @li mp_gitadd.sas
36
36
 
37
+ @sasjslint {"maxLineLength": 96}
37
38
  **/
38
39
 
39
40
  %macro mp_gitstatus(gitdir,outds=work.mp_gitstatus,mdebug=0);
@@ -40,6 +40,7 @@
40
40
  @version 9.3
41
41
  @author Allan Bowe
42
42
 
43
+ @sasjslint {"maxLineLength": 90}
43
44
  **/
44
45
 
45
46
  %macro mp_guesspk(baseds
@@ -64,6 +64,7 @@ https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n1j5tcc0n2xczyn1
64
64
  @li mf_getuniquefileref.sas
65
65
  @li mp_abort.sas
66
66
 
67
+ @sasjslint {"maxLineLength": 96}
67
68
  **/
68
69
 
69
70
  %macro mp_include(fileref
@@ -33,6 +33,7 @@
33
33
 
34
34
  @version 9.2
35
35
  @author Allan Bowe
36
+ @sasjslint {"maxLineLength": 81}
36
37
  **/
37
38
 
38
39
  %macro mp_lib2cards(lib=
@@ -16,6 +16,7 @@ https://blogs.sas.com/content/sastraining/2012/08/14/jedi-sas-tricks-reset-sas-s
16
16
  @version 9.2
17
17
  @author Allan Bowe
18
18
 
19
+ @sasjslint {"maxLineLength": 93}
19
20
  **/
20
21
 
21
22
  %macro mp_resetoption(option /* the option to reset */
@@ -206,6 +206,7 @@
206
206
 
207
207
  @version 9.2
208
208
  @author Allan Bowe
209
+ @sasjslint {"maxLineLength": 164}
209
210
  **/
210
211
  /** @cond */
211
212
 
package/base/mp_tree.sas CHANGED
@@ -29,6 +29,7 @@ https://communities.sas.com/t5/SAS-Programming/listing-all-files-of-all-types-fr
29
29
  - `fullpath`: directory + file name
30
30
 
31
31
  @version 9.2
32
+ @sasjslint {"maxLineLength": 135}
32
33
  **/
33
34
 
34
35
  %macro mp_tree(dir=/tmp
package/base/mp_unzip.sas CHANGED
@@ -28,6 +28,7 @@
28
28
  @author Allan Bowe
29
29
  @source https://github.com/sasjs/core
30
30
 
31
+ @sasjslint {"maxLineLength": 107}
31
32
  **/
32
33
 
33
34
  %macro mp_unzip(
@@ -16,6 +16,7 @@
16
16
  @param [in] interval= (1) The wait period between sleeps, in seconds
17
17
 
18
18
 
19
+ @sasjslint {"maxLineLength": 100}
19
20
  **/
20
21
 
21
22
  %macro mp_wait4file(file, maxwait=0, interval=1);
@@ -12,7 +12,7 @@
12
12
  | string $ | string to add to the file |
13
13
  | mode $ | mode of the output - either APPEND (default) or CREATE |
14
14
 
15
- It returns 0 if successful, or -1 if an error occured.
15
+ It returns 0 if successful, or -1 if it fails.
16
16
 
17
17
  Usage:
18
18
 
@@ -44,7 +44,6 @@
44
44
  @li mcf_stpsrv_header.test.sas
45
45
  @li mp_init.sas
46
46
 
47
- @sasjslint {"noBannedStrings": false}
48
47
  **/
49
48
 
50
49
  %macro mcf_string2file(wrap=YES
@@ -74,7 +73,6 @@ function mcf_string2file(filepath $, string $, mode $);
74
73
  return(0);
75
74
  endsub;
76
75
 
77
-
78
76
  %if &wrap=YES %then %do;
79
77
  quit;
80
78
  %end;
package/lua/ml_json.sas CHANGED
@@ -7,6 +7,7 @@
7
7
 
8
8
  %ml_json()
9
9
 
10
+ @sasjslint {"maxLineLength": 92}
10
11
  **/
11
12
 
12
13
  %macro ml_json();
@@ -23,6 +23,7 @@
23
23
  @version 9.3
24
24
  @author Allan Bowe
25
25
 
26
+ @sasjslint {"maxLineLength": 101}
26
27
  **/
27
28
 
28
29
  %macro mm_adduser2group(user=
@@ -13,7 +13,7 @@
13
13
  ,params= name1=value1&#x0a;name2=value2&#x0a;emptyvalue=
14
14
  )
15
15
 
16
- @warning application components do not get deleted when removing the container
16
+ @note application components do not get deleted when removing the container
17
17
  folder! be sure you have the administrative priviliges to remove this kind of
18
18
  metadata from the SMC plugin (or be ready to do to so programmatically).
19
19
 
@@ -42,7 +42,6 @@
42
42
 
43
43
  @author Allan Bowe
44
44
 
45
- @sasjslint {"noBannedStrings": false}
46
45
  **/
47
46
 
48
47
  %macro mm_createapplication(
@@ -101,7 +100,6 @@ run;
101
100
  ,msg=Application &name already exists in &tree!
102
101
  )
103
102
 
104
-
105
103
  /**
106
104
  * Now we can create the application
107
105
  */
@@ -158,5 +156,4 @@ run;
158
156
  %end;
159
157
  %else %put NOTE: Application (&name) successfully created in (&tree)!;
160
158
 
161
-
162
159
  %mend mm_createapplication;
@@ -33,6 +33,7 @@
33
33
  @version 9.4
34
34
  @author Allan Bowe
35
35
 
36
+ @sasjslint {"maxLineLength": 85}
36
37
  **/
37
38
 
38
39
  %macro mm_createdataset(libds=,tableuri=,outds=work.mm_createdataset,mDebug=0);
@@ -23,6 +23,7 @@
23
23
  @version 9.4
24
24
  @author Allan Bowe
25
25
 
26
+ @sasjslint {"maxLineLength": 82}
26
27
  **/
27
28
 
28
29
  %macro mm_createfolder(path=,mDebug=0);
@@ -56,6 +56,7 @@ Usage:
56
56
  @version 9.2
57
57
  @author Allan Bowe
58
58
 
59
+ @sasjslint {"maxLineLength": 93}
59
60
  **/
60
61
 
61
62
  %macro mm_createwebservice(path=
@@ -20,6 +20,7 @@
20
20
  @version 9.4
21
21
  @author Allan Bowe
22
22
 
23
+ @sasjslint {"noUnusedMacros": false}
23
24
  **/
24
25
 
25
26
  %macro mm_getauthinfo(outds=mm_getauthinfo
@@ -86,6 +86,7 @@
86
86
  @version 9.3
87
87
  @author Allan Bowe
88
88
 
89
+ @sasjslint {"maxLineLength": 112}
89
90
  **/
90
91
 
91
92
  %macro mm_getlibmetadiffs(
@@ -14,7 +14,7 @@
14
14
  - LibraryRef
15
15
  - Engine
16
16
 
17
- @warning The following filenames are created and then de-assigned:
17
+ @note The following filenames are created and then de-assigned:
18
18
 
19
19
  filename sxlemap clear;
20
20
  filename response clear;
@@ -23,7 +23,6 @@
23
23
  @version 9.2
24
24
  @author Allan Bowe
25
25
 
26
- @sasjslint {"noBannedStrings": false}
27
26
  **/
28
27
 
29
28
  %macro mm_getlibs(
@@ -89,7 +88,6 @@ proc sort data=_XML_.saslibrary out=&outds;
89
88
  by libraryname;
90
89
  run;
91
90
 
92
-
93
91
  /* clear references */
94
92
  filename sxlemap clear;
95
93
  filename response clear;
@@ -7,7 +7,7 @@
7
7
 
8
8
  @returns outds dataset containing all objects
9
9
 
10
- @warning The following filenames are created and then de-assigned:
10
+ @note The following filenames are created and then de-assigned:
11
11
 
12
12
  filename sxlemap clear;
13
13
  filename response clear;
@@ -16,7 +16,6 @@
16
16
  @version 9.2
17
17
  @author Allan Bowe
18
18
 
19
- @sasjslint {"noBannedStrings": false}
20
19
  **/
21
20
 
22
21
  %macro mm_getobjects(
@@ -24,7 +23,6 @@
24
23
  ,outds=work.mm_getobjects
25
24
  )/*/STORE SOURCE*/;
26
25
 
27
-
28
26
  * use a temporary fileref to hold the response;
29
27
  filename response temp;
30
28
  /* get list of libraries */
@@ -16,6 +16,7 @@
16
16
  @version 9.3
17
17
  @author Allan Bowe
18
18
 
19
+ @sasjslint {"maxLineLength": 115}
19
20
  **/
20
21
 
21
22
  %macro mm_getpublictypes(
@@ -7,7 +7,7 @@
7
7
 
8
8
  @returns outds dataset containing all repositories
9
9
 
10
- @warning The following filenames are created and then de-assigned:
10
+ @note The following filenames are created and then de-assigned:
11
11
 
12
12
  filename sxlemap clear;
13
13
  filename response clear;
@@ -16,14 +16,12 @@
16
16
  @version 9.2
17
17
  @author Allan Bowe
18
18
 
19
- @sasjslint {"noBannedStrings": false}
20
19
  **/
21
20
 
22
21
  %macro mm_getrepos(
23
22
  outds=work.mm_getrepos
24
23
  )/*/STORE SOURCE*/;
25
24
 
26
-
27
25
  * use a temporary fileref to hold the response;
28
26
  filename response temp;
29
27
  /* get list of libraries */
@@ -14,7 +14,7 @@
14
14
  - uri
15
15
  - name
16
16
 
17
- @warning The following filenames are created and then de-assigned:
17
+ @note The following filenames are created and then de-assigned:
18
18
 
19
19
  filename sxlemap clear;
20
20
  filename response clear;
@@ -23,7 +23,6 @@
23
23
  @version 9.3
24
24
  @author Allan Bowe
25
25
 
26
- @sasjslint {"noBannedStrings": false}
27
26
  **/
28
27
 
29
28
  %macro mm_getroles(
@@ -9,7 +9,7 @@
9
9
  @param [out] outds= (work.mm_getrepos)
10
10
  the dataset to create that contains the list
11
11
 
12
- @warning The following filenames are created and then de-assigned:
12
+ @note The following filenames are created and then de-assigned:
13
13
 
14
14
  filename __mc1 clear;
15
15
  filename __mc2 clear;
@@ -21,7 +21,6 @@
21
21
  @version 9.3
22
22
  @author Allan Bowe
23
23
 
24
- @sasjslint {"noBannedStrings": false}
25
24
  **/
26
25
 
27
26
  %macro mm_getservercontexts(
@@ -18,6 +18,7 @@
18
18
  @li mm_createstp.sas
19
19
  @li mm_deletestp.sas
20
20
 
21
+ @sasjslint {"maxLineLength": 292}
21
22
  **/
22
23
 
23
24
  %macro mm_getstpinfo(pgm
@@ -8,7 +8,7 @@
8
8
  @param [in] outds= (work.mm_gettypes)
9
9
  The dataset to create that contains the list of types
10
10
  @returns outds dataset containing all types
11
- @warning The following filenames are created and then de-assigned:
11
+ @note The following filenames are created and then de-assigned:
12
12
 
13
13
  filename sxlemap clear;
14
14
  filename response clear;
@@ -17,7 +17,6 @@
17
17
  @version 9.2
18
18
  @author Allan Bowe
19
19
 
20
- @sasjslint {"noBannedStrings": false}
21
20
  **/
22
21
 
23
22
  %macro mm_gettypes(
@@ -68,7 +67,6 @@ proc sort data=_XML_.sastypes out=&outds;
68
67
  by id;
69
68
  run;
70
69
 
71
-
72
70
  /* clear references */
73
71
  filename sxlemap clear;
74
72
  filename response clear;
@@ -14,7 +14,7 @@
14
14
 
15
15
  @returns outds dataset containing all properties
16
16
 
17
- @warning The following filenames are created and then de-assigned:
17
+ @note The following filenames are created and then de-assigned:
18
18
 
19
19
  filename __in clear;
20
20
  filename __out clear;
@@ -23,7 +23,6 @@
23
23
  @version 9.4
24
24
  @author Allan Bowe https://github.com/sasjs/core
25
25
 
26
- @sasjslint {"noBannedStrings": false}
27
26
  **/
28
27
 
29
28
  %macro mm_getwebappsrvprops(
@@ -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.3"
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=
@@ -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=
@@ -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);