@sasjs/core 6.1.1 → 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 (168) hide show
  1. package/.sasjslint +29 -3
  2. package/README.md +4 -2
  3. package/base/mf_dttmfmts.sas +1 -1
  4. package/base/mf_existds.sas +1 -1
  5. package/base/mf_existfeature.sas +1 -0
  6. package/base/mf_existfunction.sas +2 -1
  7. package/base/mf_existvar.sas +1 -1
  8. package/base/mf_existvarlist.sas +1 -1
  9. package/base/mf_getapploc.sas +1 -1
  10. package/base/mf_getattrc.sas +2 -1
  11. package/base/mf_getattrn.sas +2 -1
  12. package/base/mf_getengine.sas +2 -2
  13. package/base/mf_getfilesize.sas +1 -1
  14. package/base/mf_getfmtlist.sas +1 -1
  15. package/base/mf_getfmtname.sas +1 -1
  16. package/base/mf_getkeyvalue.sas +1 -1
  17. package/base/mf_getquotedstr.sas +1 -1
  18. package/base/mf_getschema.sas +1 -1
  19. package/base/mf_getuniquefileref.sas +2 -1
  20. package/base/mf_getuniquelibref.sas +1 -1
  21. package/base/mf_getuniquename.sas +1 -1
  22. package/base/mf_getvarcount.sas +1 -1
  23. package/base/mf_getvarformat.sas +1 -1
  24. package/base/mf_getvarlen.sas +1 -1
  25. package/base/mf_getvarlist.sas +1 -1
  26. package/base/mf_getvarnum.sas +1 -1
  27. package/base/mf_getvartype.sas +1 -1
  28. package/base/mf_isblank.sas +1 -1
  29. package/base/mf_isdir.sas +1 -1
  30. package/base/mf_islibds.sas +1 -1
  31. package/base/mf_mimetype.sas +2 -1
  32. package/base/mf_nobs.sas +1 -1
  33. package/base/mf_trimstr.sas +1 -1
  34. package/base/mf_uid.sas +1 -1
  35. package/base/mf_verifymacvars.sas +3 -3
  36. package/base/mf_wordsinstr1andstr2.sas +1 -1
  37. package/base/mf_writefile.sas +1 -1
  38. package/base/mp_abort.sas +3 -3
  39. package/base/mp_appendfile.sas +1 -1
  40. package/base/mp_applyformats.sas +3 -4
  41. package/base/mp_assert.sas +1 -1
  42. package/base/mp_assertcols.sas +1 -1
  43. package/base/mp_assertcolvals.sas +1 -1
  44. package/base/mp_assertdsobs.sas +1 -1
  45. package/base/mp_base64copy.sas +1 -1
  46. package/base/mp_cleancsv.sas +1 -1
  47. package/base/mp_cntlout.sas +1 -1
  48. package/base/mp_csv2ds.sas +1 -1
  49. package/base/mp_deleteconstraints.sas +1 -1
  50. package/base/mp_deletefolder.sas +1 -1
  51. package/base/mp_derivedvarcheck.sas +200 -0
  52. package/base/mp_derivedvars.sas +113 -62
  53. package/base/mp_dictionary.sas +1 -0
  54. package/base/mp_dirlist.sas +2 -3
  55. package/base/mp_distinctfmtvalues.sas +1 -1
  56. package/base/mp_dropmembers.sas +1 -1
  57. package/base/mp_ds2csv.sas +1 -1
  58. package/base/mp_ds2ddl.sas +3 -1
  59. package/base/mp_ds2fmtds.sas +1 -1
  60. package/base/mp_ds2inserts.sas +1 -1
  61. package/base/mp_ds2squeeze.sas +1 -1
  62. package/base/mp_dsmeta.sas +1 -0
  63. package/base/mp_filtercheck.sas +1 -0
  64. package/base/mp_filtergenerate.sas +1 -0
  65. package/base/mp_filterstore.sas +2 -1
  66. package/base/mp_filtervalidate.sas +1 -2
  67. package/base/mp_getcols.sas +2 -1
  68. package/base/mp_getconstraints.sas +2 -1
  69. package/base/mp_getdbml.sas +1 -1
  70. package/base/mp_getformats.sas +2 -1
  71. package/base/mp_getmaxvarlengths.sas +1 -1
  72. package/base/mp_getpk.sas +1 -0
  73. package/base/mp_gitlog.sas +1 -0
  74. package/base/mp_gitstatus.sas +1 -0
  75. package/base/mp_guesspk.sas +2 -1
  76. package/base/mp_include.sas +2 -1
  77. package/base/mp_lib2cards.sas +2 -1
  78. package/base/mp_lib2inserts.sas +1 -1
  79. package/base/mp_lockfilecheck.sas +1 -1
  80. package/base/mp_makedata.sas +1 -1
  81. package/base/mp_perflog.sas +1 -1
  82. package/base/mp_prevobs.sas +1 -1
  83. package/base/mp_reseterror.sas +1 -1
  84. package/base/mp_resetoption.sas +2 -1
  85. package/base/mp_runddl.sas +1 -1
  86. package/base/mp_searchcols.sas +1 -1
  87. package/base/mp_setkeyvalue.sas +1 -1
  88. package/base/mp_sortinplace.sas +1 -1
  89. package/base/mp_stackdiffs.sas +2 -1
  90. package/base/mp_storediffs.sas +1 -1
  91. package/base/mp_stprequests.sas +1 -1
  92. package/base/mp_stripdiffs.sas +1 -1
  93. package/base/mp_testjob.sas +1 -1
  94. package/base/mp_testwritespeedlibrary.sas +1 -1
  95. package/base/mp_tree.sas +2 -1
  96. package/base/mp_unzip.sas +1 -0
  97. package/base/mp_wait4file.sas +2 -1
  98. package/base/mp_webin.sas +1 -1
  99. package/base/mp_zip.sas +1 -1
  100. package/ddl/mddl_dc_difftable.sas +1 -1
  101. package/ddl/mddl_dc_filterdetail.sas +1 -1
  102. package/ddl/mddl_dc_filtersummary.sas +1 -1
  103. package/ddl/mddl_dc_locktable.sas +1 -1
  104. package/ddl/mddl_dc_maxkeytable.sas +1 -1
  105. package/fcmp/mcf_getfmttype.sas +1 -1
  106. package/fcmp/mcf_length.sas +1 -1
  107. package/fcmp/mcf_string2file.sas +2 -3
  108. package/lua/ml_json.sas +1 -0
  109. package/meta/mm_adduser2group.sas +1 -0
  110. package/meta/mm_assigndirectlib.sas +0 -1
  111. package/meta/mm_assignlib.sas +1 -0
  112. package/meta/mm_createapplication.sas +2 -4
  113. package/meta/mm_createdataset.sas +2 -1
  114. package/meta/mm_createdocument.sas +1 -1
  115. package/meta/mm_createfolder.sas +2 -1
  116. package/meta/mm_createstp.sas +1 -1
  117. package/meta/mm_createwebservice.sas +1 -0
  118. package/meta/mm_getauthinfo.sas +2 -1
  119. package/meta/mm_getcols.sas +1 -1
  120. package/meta/mm_getdetails.sas +1 -1
  121. package/meta/mm_getgroups.sas +1 -1
  122. package/meta/mm_getlibmetadiffs.sas +1 -0
  123. package/meta/mm_getlibs.sas +2 -3
  124. package/meta/mm_getobjects.sas +2 -3
  125. package/meta/mm_getpublictypes.sas +2 -1
  126. package/meta/mm_getrepos.sas +2 -3
  127. package/meta/mm_getroles.sas +1 -1
  128. package/meta/mm_getservercontexts.sas +2 -2
  129. package/meta/mm_getstpinfo.sas +1 -0
  130. package/meta/mm_gettableid.sas +1 -1
  131. package/meta/mm_gettables.sas +1 -1
  132. package/meta/mm_gettree.sas +1 -1
  133. package/meta/mm_gettypes.sas +2 -3
  134. package/meta/mm_getwebappsrvprops.sas +2 -2
  135. package/meta/mm_updateappextension.sas +1 -1
  136. package/meta/mm_updatedocument.sas +1 -1
  137. package/metax/mmx_deletemetafolder.sas +1 -0
  138. package/metax/mmx_spkexport.sas +1 -1
  139. package/package.json +1 -1
  140. package/server/ms_createwebservice.sas +1 -0
  141. package/server/ms_getfile.sas +1 -1
  142. package/server/ms_testservice.sas +2 -2
  143. package/server/ms_triggerstp.sas +2 -1
  144. package/viya/mfv_existfile.sas +1 -1
  145. package/viya/mfv_existfolder.sas +1 -1
  146. package/viya/mfv_getfolderpath.sas +1 -1
  147. package/viya/mfv_getpathuri.sas +1 -1
  148. package/viya/mv_createfile.sas +1 -1
  149. package/viya/mv_createfolder.sas +1 -1
  150. package/viya/mv_createjob.sas +1 -0
  151. package/viya/mv_createwebservice.sas +1 -0
  152. package/viya/mv_deletefoldermember.sas +2 -1
  153. package/viya/mv_deletejes.sas +2 -1
  154. package/viya/mv_getclients.sas +2 -1
  155. package/viya/mv_getfoldermembers.sas +2 -1
  156. package/viya/mv_getgroupmembers.sas +1 -1
  157. package/viya/mv_getjoblog.sas +4 -6
  158. package/viya/mv_getjobstate.sas +1 -0
  159. package/viya/mv_getusergroups.sas +1 -1
  160. package/viya/mv_getusers.sas +1 -1
  161. package/viya/mv_jobexecute.sas +1 -1
  162. package/viya/mv_jobflow.sas +1 -0
  163. package/viya/mv_jobwaitfor.sas +8 -8
  164. package/viya/mv_registerclient.sas +1 -0
  165. package/viya/mv_tokenauth.sas +1 -1
  166. package/viya/mv_tokenrefresh.sas +1 -1
  167. package/xplatform/mx_execute.sas +1 -0
  168. package/xplatform/mx_getgroups.sas +1 -1
package/.sasjslint CHANGED
@@ -6,10 +6,36 @@
6
6
  "hasMacroParentheses": true,
7
7
  "lineEndings": "lf",
8
8
  "noGremlins": true,
9
- "noNestedMacros": false,
9
+ "noNestedMacros": true,
10
10
  "noSpacesInFileNames": true,
11
- "maxLineLength": 300,
11
+ "maxLineLength": 80,
12
12
  "lowerCaseFileNames": true,
13
13
  "noTabs": true,
14
- "indentationMultiple": 2
14
+ "indentationMultiple": 2,
15
+ "severityLevel": {
16
+ "hasDoxygenHeader": "error",
17
+ "hasMacroNameInMend": "error",
18
+ "hasMacroParentheses": "error",
19
+ "indentationMultiple": "error",
20
+ "lineEndings": "error",
21
+ "lowerCaseFileNames": "error",
22
+ "maxLineLength": "error",
23
+ "minMacroNameLength": "error",
24
+ "noEncodedPasswords": "error",
25
+ "noGremlins": "error",
26
+ "noNestedCommentsInHeader": "error",
27
+ "noSpacesInFileNames": "error",
28
+ "noTabs": "error",
29
+ "noTrailingSpaces": "error",
30
+ "noUndeclaredMacros": "error",
31
+ "noUnusedMacros": "error",
32
+ "strictMacroDefinition": "error",
33
+ "noBannedStrings": "error",
34
+ "noSingleAsteriskComments": "error",
35
+ "noUnusedLibnames": "error",
36
+ "hasRequiredMacroOptions": "error"
37
+ },
38
+ "ignoreList": [
39
+ "all.sas"
40
+ ]
15
41
  }
package/README.md CHANGED
@@ -211,11 +211,13 @@ When contributing to this library, it is therefore important to ensure that all
211
211
  - Avoid naming collisions! All macro variables should be local scope. Use system generated work tables where possible - eg `data ; set sashelp.class; run; data &output; set &syslast; run;`
212
212
  - Where global macro variables are absolutely necessary, they must use the hard-coded `_SASJS_` prefix and be declared in mp_init.sas - see mp_init.sas
213
213
  - The use of `quit;` for `proc sql` is essential, to avoid `WARNING: You cannot disconnect or terminate session XXXX until the procedure completes.` when terminating CAS sessions in Viya.
214
- - Use [sasjs lint](https://github.com/sasjs/lint)!
214
+ - Macro logic (`%if`, `%do`) belongs inside a macro definition - in open code it needs SAS 9.4M5, which is later than the 9.4M0 floor in General Notes.
215
+ - Use [sasjs lint](https://github.com/sasjs/lint)! The pre-commit hook blocks a commit on lint **errors** and lets warnings through, so a rule becomes a gate the same day its last violation is cleared - add it to `severityLevel` in `.sasjslint` as `error` at that point.
215
216
 
216
217
  ## General Notes
217
218
 
218
- - All macros should be compatible with SAS versions from support level B and above (so currently 9.3 and later). If an earlier version is not supported, then the macro should say as such in the header documentation, and exit gracefully.
219
+ - All macros should be compatible with SAS 9.4 (every maintenance release, 9.4M0 and later - including the releases in Limited Support) and with SAS Viya.
220
+ - Where a macro needs a later release than that floor, it should say so in the header (`@version` is the EARLIEST SAS version in which the macro is known to work) and exit gracefully when it runs on an older one. The threshold is the macro's own, not the floor above: `mm_createstp.sas` checks `%if %sysevalf(&sysver lt 9.3)` because type 2 stored processes need 9.3, and `mf_fmtdttm.sas` shows the maintenance-level form - `("&sysver"="9.4" and "%substr(&SYSVLONG,9,1)" le "3")`.
219
221
  - It's [best to avoid](https://git.datacontroller.io/dc/dc/issues/50) special / non-ASCII characters for compatibility with the widest variety of SAS installations.
220
222
 
221
223
  ## Breaking Changes
@@ -30,7 +30,7 @@
30
30
  %local type found;
31
31
  %let type=%upcase(&type);
32
32
  %let found=0;
33
- /* so an empty type reaches the abort below, rather than an %eval error */
33
+ /* so an empty type reaches the abort below */
34
34
  %if %length(&type)=0 %then %let type=INVALID;
35
35
 
36
36
  %if &type=DATE %then %do;
@@ -16,7 +16,7 @@
16
16
  <h4> Related Macros </h4>
17
17
  @li mf_existds.test.sas
18
18
 
19
- @warning Untested on tables registered in metadata but not physically present
19
+ @note Untested on tables registered in metadata but not physically present
20
20
  @version 9.2
21
21
  @author Allan Bowe
22
22
  **/
@@ -18,6 +18,7 @@
18
18
 
19
19
  @version 8
20
20
  @author Allan Bowe
21
+ @sasjslint {"maxLineLength": 94}
21
22
  **/
22
23
  /** @cond */
23
24
  %macro mf_existfeature(feature
@@ -19,6 +19,7 @@ https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/baseplus.md#functionex
19
19
  @param [in] name function name
20
20
 
21
21
  @author Allan Bowe
22
+ @sasjslint {"maxLineLength": 90}
22
23
  **/
23
24
  /** @cond */
24
25
  %macro mf_existfunction(name
@@ -34,4 +35,4 @@ https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/baseplus.md#functionex
34
35
 
35
36
  %mend mf_existfunction;
36
37
 
37
- /** @endcond */
38
+ /** @endcond */
@@ -40,4 +40,4 @@
40
40
 
41
41
  %mend mf_existvar;
42
42
 
43
- /** @endcond */
43
+ /** @endcond */
@@ -56,4 +56,4 @@
56
56
  %end;
57
57
  %mend mf_existvarlist;
58
58
 
59
- /** @endcond */
59
+ /** @endcond */
@@ -76,4 +76,4 @@ or %index(&pgm,/tests/testteardown)
76
76
  %end;
77
77
  %else %put &sysmacroname: Could not find an app location from &pgm;
78
78
  &root
79
- %mend mf_getapploc ;
79
+ %mend mf_getapploc ;
@@ -14,6 +14,7 @@
14
14
 
15
15
  @version 9.2
16
16
  @author Allan Bowe
17
+ @sasjslint {"maxLineLength": 101}
17
18
  **/
18
19
 
19
20
  %macro mf_getattrc(
@@ -31,4 +32,4 @@
31
32
  %sysfunc(attrc(&dsid,&attr))
32
33
  %let rc=%sysfunc(close(&dsid));
33
34
  %end;
34
- %mend mf_getattrc;
35
+ %mend mf_getattrc;
@@ -14,6 +14,7 @@
14
14
 
15
15
  @version 9.2
16
16
  @author Allan Bowe
17
+ @sasjslint {"maxLineLength": 98}
17
18
  **/
18
19
 
19
20
  %macro mf_getattrn(
@@ -31,4 +32,4 @@
31
32
  %sysfunc(attrn(&dsid,&attr))
32
33
  %let rc=%sysfunc(close(&dsid));
33
34
  %end;
34
- %mend mf_getattrn;
35
+ %mend mf_getattrn;
@@ -17,7 +17,7 @@
17
17
  @return output returns the library engine (uppercase) for the FIRST library
18
18
  encountered.
19
19
 
20
- @warning will only return the FIRST library engine - for concatenated
20
+ @note will only return the FIRST library engine - for concatenated
21
21
  libraries, with different engines, inconsistent results may be encountered.
22
22
 
23
23
  @version 9.2
@@ -51,4 +51,4 @@
51
51
 
52
52
  %mend mf_getengine;
53
53
 
54
- /** @endcond */
54
+ /** @endcond */
@@ -61,4 +61,4 @@
61
61
  %sysfunc(INPUTN(&bytes, best.),sizekmg.)
62
62
  %end;
63
63
 
64
- %mend mf_getfilesize ;
64
+ %mend mf_getfilesize ;
@@ -57,4 +57,4 @@
57
57
  %end;
58
58
  /* send them out without spaces or quote markers */
59
59
  %do;%unquote(&out)%end;
60
- %mend mf_getfmtlist;
60
+ %mend mf_getfmtlist;
@@ -41,4 +41,4 @@
41
41
 
42
42
  /* send them out without spaces or quote markers */
43
43
  %do;%unquote(%upcase(&fmt))%end;
44
- %mend mf_getfmtname;
44
+ %mend mf_getfmtname;
@@ -30,4 +30,4 @@
30
30
  &valc
31
31
  %end;
32
32
  %else %put %str(ERR)OR: Unable to find key &key in ds &libds;
33
- %mend mf_getkeyvalue;
33
+ %mend mf_getkeyvalue;
@@ -54,4 +54,4 @@
54
54
 
55
55
  &buffer
56
56
 
57
- %mend mf_getquotedstr;
57
+ %mend mf_getquotedstr;
@@ -12,7 +12,7 @@
12
12
 
13
13
  @return output returns the library schema for the FIRST library encountered
14
14
 
15
- @warning will only return the FIRST library schema - for concatenated
15
+ @note will only return the FIRST library schema - for concatenated
16
16
  libraries, with different schemas, inconsistent results may be encountered.
17
17
 
18
18
  @version 9.2
@@ -33,6 +33,7 @@
33
33
 
34
34
  @version 9.2
35
35
  @author Allan Bowe
36
+ @sasjslint {"noBannedStrings": false}
36
37
  **/
37
38
 
38
39
  %macro mf_getuniquefileref(prefix=_,maxtries=1000,lrecl=32767);
@@ -57,4 +58,4 @@
57
58
  %end;
58
59
  %put unable to find available fileref after &maxtries attempts;
59
60
  %end;
60
- %mend mf_getuniquefileref;
61
+ %mend mf_getuniquefileref;
@@ -52,4 +52,4 @@
52
52
  %put %str(ERR)OR: No usable libref in range &prefix.0-&maxtries;
53
53
  %put %str(ERR)OR- Try reducing the prefix or deleting some libraries!;
54
54
  0
55
- %mend mf_getuniquelibref;
55
+ %mend mf_getuniquelibref;
@@ -19,4 +19,4 @@
19
19
 
20
20
  %macro mf_getuniquename(prefix=MC);
21
21
  &prefix.%substr(%sysfunc(compress(%sysfunc(uuidgen()),-)),1,32-%length(&prefix))
22
- %mend mf_getuniquename;
22
+ %mend mf_getuniquename;
@@ -46,4 +46,4 @@
46
46
  %let rc=%sysfunc(close(&dsid));
47
47
  %end;
48
48
  &outcnt
49
- %mend mf_getvarcount;
49
+ %mend mf_getvarcount;
@@ -70,4 +70,4 @@
70
70
  %let rc = %sysfunc(close(&dsid));
71
71
  /* Return variable format */
72
72
  &vformat
73
- %mend mf_getVarFormat;
73
+ %mend mf_getVarFormat;
@@ -53,4 +53,4 @@
53
53
  %let rc = %sysfunc(close(&dsid));
54
54
  /* Return variable format */
55
55
  &vlen
56
- %mend mf_getVarLen;
56
+ %mend mf_getVarLen;
@@ -71,4 +71,4 @@
71
71
  %let rc=%sysfunc(close(&dsid));
72
72
  %end;
73
73
  %do;%unquote(&outvar)%end;
74
- %mend mf_getvarlist;
74
+ %mend mf_getvarlist;
@@ -55,4 +55,4 @@ returns:
55
55
  /* Return variable number */
56
56
  &vnum.
57
57
 
58
- %mend mf_getVarNum;
58
+ %mend mf_getVarNum;
@@ -49,4 +49,4 @@ Usage:
49
49
  %let rc = %sysfunc(close(&dsid));
50
50
  /* Return variable type */
51
51
  &vtype
52
- %mend mf_getvartype;
52
+ %mend mf_getvartype;
@@ -24,4 +24,4 @@
24
24
 
25
25
  %sysevalf(%superq(param)=,boolean)
26
26
 
27
- %mend mf_isblank;
27
+ %mend mf_isblank;
package/base/mf_isdir.sas CHANGED
@@ -31,4 +31,4 @@
31
31
 
32
32
  &is_directory
33
33
 
34
- %mend mf_isdir;
34
+ %mend mf_isdir;
@@ -37,4 +37,4 @@
37
37
 
38
38
  %sysfunc(prxmatch(&regex,&libds))
39
39
 
40
- %mend mf_islibds;
40
+ %mend mf_islibds;
@@ -12,6 +12,7 @@
12
12
 
13
13
  @version 9.2
14
14
  @author Allan Bowe
15
+ @sasjslint {"maxLineLength": 82}
15
16
  **/
16
17
 
17
18
  %macro mf_mimetype(
@@ -433,4 +434,4 @@
433
434
  %else %if "&ext"="in" %then %do;%str(text/plain)%end;
434
435
  %else %do;%str(application/octet-stream)%end;
435
436
 
436
- %mend mf_mimetype;
437
+ %mend mf_mimetype;
package/base/mf_nobs.sas CHANGED
@@ -23,4 +23,4 @@
23
23
  %macro mf_nobs(libds
24
24
  )/*/STORE SOURCE*/;
25
25
  %mf_getattrn(&libds,NLOBS)
26
- %mend mf_nobs;
26
+ %mend mf_nobs;
@@ -47,4 +47,4 @@
47
47
  &basestr
48
48
  %end;
49
49
 
50
- %mend mf_trimstr;
50
+ %mend mf_trimstr;
package/base/mf_uid.sas CHANGED
@@ -18,4 +18,4 @@
18
18
 
19
19
  &today._&now._&sysjobid._%sysevalf(%sysfunc(ranuni(0))*999,CEIL)
20
20
 
21
- %mend mf_uid;
21
+ %mend mf_uid;
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  @file
3
3
  @brief Checks if a set of macro variables exist AND contain values.
4
- @details Writes ERROR to log if abortType is SOFT, else will call %mf_abort.
4
+ @details Reports a failure in the log if abortType is SOFT, else calls
5
+ %mf_abort.
5
6
  Usage:
6
7
 
7
8
  %let var1=x;
@@ -22,7 +23,7 @@
22
23
  Set to any other value to call mf_abort (which can be configured to abort in
23
24
  various fashions according to context).
24
25
 
25
- @warning will not be able to verify the following variables due to
26
+ @note will not be able to verify the following variables due to
26
27
  naming clash!
27
28
  - verifyVars
28
29
  - verifyVar
@@ -34,7 +35,6 @@
34
35
 
35
36
  **/
36
37
 
37
-
38
38
  %macro mf_verifymacvars(
39
39
  verifyVars /* list of macro variable NAMES */
40
40
  ,makeUpcase=NO /* set to YES to make all the variable VALUES uppercase */
@@ -19,7 +19,7 @@
19
19
  @param [in] str1= () string containing words to extract
20
20
  @param [in] str2= () used to compare with the extract string
21
21
 
22
- @warning CASE SENSITIVE!
22
+ @note CASE SENSITIVE!
23
23
 
24
24
  @version 9.2
25
25
  @author Allan Bowe
@@ -64,4 +64,4 @@
64
64
  %let rc=%sysfunc(filename(&fref));
65
65
 
66
66
  %mend mf_writefile;
67
- /** @endcond */
67
+ /** @endcond */
package/base/mp_abort.sas CHANGED
@@ -223,9 +223,9 @@ and %superq(SYSPROCESSNAME) ne %str(Compute Server)
223
223
  put ',"_METAUSER": ' _METAUSER;
224
224
  end;
225
225
  /* _METAPERSON is not always set when _METAUSER is (e.g. Viya JES
226
- sessions provide only _METAUSER) - guard it separately or SYMGET
227
- raises "Invalid argument" and pollutes SYSERRORTEXT inside the
228
- very abort JSON we are writing here. */
226
+ sessions provide only _METAUSER) - guard it separately or SYMGET
227
+ raises "Invalid argument" and pollutes SYSERRORTEXT inside the
228
+ very abort JSON we are writing here. */
229
229
  if symexist('_metaperson') then do;
230
230
  _METAPERSON=quote(trim(symget('_METAPERSON')));
231
231
  put ',"_METAPERSON": ' _METAPERSON;
@@ -54,4 +54,4 @@
54
54
  %mp_binarycopy(inref=%scan(&appendrefs,&i), outref=&baseref, mode=APPEND)
55
55
  %end;
56
56
 
57
- %mend mp_appendfile;
57
+ %mend mp_appendfile;
@@ -53,8 +53,8 @@
53
53
  |`WORK `|`EXAMPLE `|`YEAR `|`8. `|
54
54
 
55
55
  @param [out] errds= (0) Provide a libds reference here to export the
56
- error messages to a table. In this case, they will not be printed to the
57
- log.
56
+ diagnostic messages to a table. In this case, they will not be printed
57
+ to the log.
58
58
 
59
59
  <h4> SAS Macros </h4>
60
60
  @li mf_getengine.sas
@@ -63,7 +63,6 @@
63
63
  @li mf_nobs.sas
64
64
  @li mp_validatecol.sas
65
65
 
66
-
67
66
  <h4> Related Macros </h4>
68
67
  @li mp_getformats.sas
69
68
 
@@ -178,4 +177,4 @@ run;
178
177
  drop table &outds;
179
178
  %end;
180
179
 
181
- %mend mp_applyformats;
180
+ %mend mp_applyformats;
@@ -54,4 +54,4 @@
54
54
  drop table &ds;
55
55
  quit;
56
56
 
57
- %mend mp_assert;
57
+ %mend mp_assert;
@@ -144,4 +144,4 @@
144
144
  proc sql;
145
145
  drop table &ds;
146
146
 
147
- %mend mp_assertcols;
147
+ %mend mp_assertcols;
@@ -169,4 +169,4 @@
169
169
  proc sql;
170
170
  drop table &ds;
171
171
 
172
- %mend mp_assertcolvals;
172
+ %mend mp_assertcolvals;
@@ -118,4 +118,4 @@
118
118
  proc sql;
119
119
  drop table &ds;
120
120
 
121
- %mend mp_assertdsobs;
121
+ %mend mp_assertdsobs;
@@ -114,4 +114,4 @@ run;
114
114
  run;
115
115
  %end;
116
116
 
117
- %mend mp_base64copy;
117
+ %mend mp_base64copy;
@@ -76,4 +76,4 @@
76
76
  end;
77
77
  run;
78
78
  %mend mp_cleancsv;
79
- /** @endcond */
79
+ /** @endcond */
@@ -91,4 +91,4 @@ proc sql;
91
91
  drop table &ddlds,&cntlds;
92
92
 
93
93
  %mend mp_cntlout;
94
- /** @endcond */
94
+ /** @endcond */
@@ -138,4 +138,4 @@ data &outds
138
138
  %end;
139
139
  run;
140
140
 
141
- %mend mp_csv2ds;
141
+ %mend mp_csv2ds;
@@ -51,4 +51,4 @@ data &outds;
51
51
  end;
52
52
  run;
53
53
 
54
- %mend mp_deleteconstraints;
54
+ %mend mp_deleteconstraints;
@@ -67,4 +67,4 @@
67
67
 
68
68
  %end;
69
69
  %else %put &sysmacroname: &folder: is not a valid / accessible folder. ;
70
- %mend mp_deletefolder;
70
+ %mend mp_deletefolder;