@sasjs/core 4.46.6 → 4.48.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.
Files changed (133) hide show
  1. package/README.md +5 -3
  2. package/base/mf_abort.sas +5 -0
  3. package/base/mf_deletefile.sas +1 -1
  4. package/base/mf_existds.sas +1 -1
  5. package/base/mf_existfileref.sas +1 -1
  6. package/base/mf_existfunction.sas +1 -1
  7. package/base/mf_existvarlist.sas +2 -2
  8. package/base/mf_getapploc.sas +1 -0
  9. package/base/mf_getattrc.sas +2 -2
  10. package/base/mf_getattrn.sas +2 -2
  11. package/base/mf_getkeyvalue.sas +3 -2
  12. package/base/mf_getplatform.sas +1 -1
  13. package/base/mf_getschema.sas +1 -1
  14. package/base/mf_getuniquelibref.sas +1 -1
  15. package/base/mf_getuniquename.sas +1 -1
  16. package/base/mf_getuser.sas +0 -2
  17. package/base/mf_getvalue.sas +3 -3
  18. package/base/mf_getvarformat.sas +2 -1
  19. package/base/mf_getvarlen.sas +2 -2
  20. package/base/mf_getvarnum.sas +2 -2
  21. package/base/mf_getvartype.sas +2 -2
  22. package/base/mf_getxengine.sas +1 -1
  23. package/base/mf_increment.sas +2 -2
  24. package/base/mf_isblank.sas +1 -1
  25. package/base/mf_isdir.sas +1 -1
  26. package/base/mf_loc.sas +6 -1
  27. package/base/mf_mkdir.sas +1 -1
  28. package/base/mf_mval.sas +2 -0
  29. package/base/mf_nobs.sas +1 -1
  30. package/base/mf_trimstr.sas +2 -2
  31. package/base/mf_wordsinstr1andstr2.sas +2 -2
  32. package/base/mf_wordsinstr1butnotstr2.sas +2 -2
  33. package/base/mf_writefile.sas +2 -2
  34. package/base/mp_abort.sas +11 -10
  35. package/base/mp_aligndecimal.sas +2 -2
  36. package/base/mp_appendfile.sas +2 -2
  37. package/base/mp_assertcols.sas +2 -2
  38. package/base/mp_assertcolvals.sas +1 -1
  39. package/base/mp_base64copy.sas +2 -2
  40. package/base/mp_binarycopy.sas +7 -6
  41. package/base/mp_chop.sas +3 -2
  42. package/base/mp_cleancsv.sas +5 -4
  43. package/base/mp_copyfolder.sas +1 -1
  44. package/base/mp_createconstraints.sas +3 -3
  45. package/base/mp_createwebservice.sas +1 -1
  46. package/base/mp_csv2ds.sas +6 -5
  47. package/base/mp_deleteconstraints.sas +5 -3
  48. package/base/mp_deletefolder.sas +1 -1
  49. package/base/mp_dictionary.sas +1 -1
  50. package/base/mp_distinctfmtvalues.sas +5 -5
  51. package/base/mp_ds2ddl.sas +14 -2
  52. package/base/mp_dsmeta.sas +2 -2
  53. package/base/mp_filtercheck.sas +6 -4
  54. package/base/mp_filtergenerate.sas +2 -2
  55. package/base/mp_filterstore.sas +4 -3
  56. package/base/mp_getcols.sas +3 -2
  57. package/base/mp_getdbml.sas +4 -4
  58. package/base/mp_getddl.sas +15 -10
  59. package/base/mp_gsubfile.sas +6 -6
  60. package/base/mp_guesspk.sas +1 -1
  61. package/base/mp_hashdataset.sas +1 -1
  62. package/base/mp_lib2cards.sas +7 -7
  63. package/base/mp_md5.sas +2 -2
  64. package/base/mp_perflog.sas +3 -3
  65. package/base/mp_prevobs.sas +5 -5
  66. package/base/mp_recursivejoin.sas +7 -6
  67. package/base/mp_replace.sas +5 -4
  68. package/base/mp_runddl.sas +3 -3
  69. package/base/mp_searchcols.sas +7 -6
  70. package/base/mp_stprequests.sas +4 -3
  71. package/base/mp_testjob.sas +2 -2
  72. package/base/mp_testwritespeedlibrary.sas +3 -3
  73. package/base/mp_tree.sas +2 -2
  74. package/base/mp_unzip.sas +5 -4
  75. package/base/mp_updatevarlength.sas +3 -3
  76. package/base/mp_validatecol.sas +1 -1
  77. package/base/mp_wait4file.sas +1 -1
  78. package/base/mp_webin.sas +1 -1
  79. package/base/mp_zip.sas +5 -5
  80. package/ddl/mddl_sas_cntlout.sas +12 -1
  81. package/meta/mm_adduser2group.sas +3 -3
  82. package/meta/mm_assigndirectlib.sas +10 -12
  83. package/meta/mm_assignlib.sas +2 -2
  84. package/meta/mm_createapplication.sas +13 -10
  85. package/meta/mm_createdataset.sas +5 -5
  86. package/meta/mm_createdocument.sas +7 -7
  87. package/meta/mm_createlibrary.sas +20 -17
  88. package/meta/mm_createstp.sas +42 -20
  89. package/meta/mm_createwebservice.sas +15 -14
  90. package/meta/mm_deletedocument.sas +1 -1
  91. package/meta/mm_deletelibrary.sas +1 -1
  92. package/meta/mm_deletestp.sas +1 -1
  93. package/meta/mm_getcols.sas +2 -2
  94. package/meta/mm_getdetails.sas +6 -3
  95. package/meta/mm_getdirectories.sas +4 -3
  96. package/meta/mm_getdocument.sas +4 -4
  97. package/meta/mm_getgroupmembers.sas +5 -5
  98. package/meta/mm_getlibs.sas +2 -2
  99. package/meta/mm_getobjects.sas +2 -2
  100. package/meta/mm_getpublictypes.sas +2 -0
  101. package/meta/mm_getrepos.sas +2 -1
  102. package/meta/mm_getroles.sas +2 -1
  103. package/meta/mm_getservercontexts.sas +2 -1
  104. package/meta/mm_getstps.sas +8 -7
  105. package/meta/mm_gettableid.sas +4 -4
  106. package/meta/mm_gettree.sas +4 -4
  107. package/meta/mm_gettypes.sas +2 -1
  108. package/meta/mm_getusers.sas +2 -4
  109. package/meta/mm_getwebappsrvprops.sas +1 -1
  110. package/meta/mm_tree.sas +3 -3
  111. package/meta/mm_updateappextension.sas +8 -8
  112. package/meta/mm_updatedocument.sas +6 -6
  113. package/meta/mm_updatestpservertype.sas +2 -2
  114. package/meta/mm_updatestpsourcecode.sas +6 -4
  115. package/metax/mmx_createmetafolder.sas +3 -3
  116. package/metax/mmx_deletemetafolder.sas +3 -3
  117. package/metax/mmx_spkexport.sas +6 -5
  118. package/package.json +1 -1
  119. package/viya/mfv_existfile.sas +2 -1
  120. package/viya/mfv_existfolder.sas +1 -1
  121. package/viya/mfv_existsashdat.sas +4 -4
  122. package/viya/mv_createjob.sas +16 -14
  123. package/viya/mv_deletefoldermember.sas +8 -6
  124. package/viya/mv_deletejes.sas +7 -5
  125. package/viya/mv_getclients.sas +2 -4
  126. package/viya/mv_getgroupmembers.sas +8 -5
  127. package/viya/mv_getgroups.sas +6 -4
  128. package/viya/mv_getjobstate.sas +6 -4
  129. package/viya/mv_getusergroups.sas +7 -4
  130. package/viya/mv_getusers.sas +8 -6
  131. package/viya/mv_registerclient.sas +4 -4
  132. package/viya/mv_tokenauth.sas +14 -13
  133. package/viya/mv_tokenrefresh.sas +11 -10
package/README.md CHANGED
@@ -212,7 +212,8 @@ When contributing to this library, it is therefore important to ensure that all
212
212
 
213
213
  ## General Notes
214
214
 
215
- - All macros should be compatible with SAS versions from support level B and above (so currently 9.2 and later). If an earlier version is not supported, then the macro should say as such in the header documentation, and exit gracefully (eg `%if %sysevalf(&sysver<9.3) %then %return`).
215
+ - 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.
216
+ - 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.
216
217
 
217
218
  ## Breaking Changes
218
219
 
@@ -235,13 +236,14 @@ If you find this library useful, please leave a [star](https://github.com/sasjs/
235
236
 
236
237
  The following repositories are also worth checking out:
237
238
 
238
- * [xieliaing/SAS](https://github.com/xieliaing/SAS)
239
- * [SASJedi/sas-macros](https://github.com/SASJedi/sas-macros)
240
239
  * [chris-swenson/sasmacros](https://github.com/chris-swenson/sasmacros)
241
240
  * [greg-wotton/sas-programs](https://github.com/greg-wootton/sas-programs)
242
241
  * [KatjaGlassConsulting/SMILE-SmartSASMacros](https://github.com/KatjaGlassConsulting/SMILE-SmartSASMacros)
242
+ * [paul-canals/toolbox](https://github.com/paul-canals/toolbox)
243
243
  * [rogerjdeangelis](https://github.com/rogerjdeangelis)
244
+ * [SASJedi/sas-macros](https://github.com/SASJedi/sas-macros)
244
245
  * [scottbass/sas](https://github.com/scottbass/SAS)
246
+ * [xieliaing/SAS](https://github.com/xieliaing/SAS)
245
247
  * [yabwon/sas_packages](https://github.com/yabwon/SAS_PACKAGES)
246
248
 
247
249
  ## Contributors ✨
package/base/mf_abort.sas CHANGED
@@ -3,6 +3,11 @@
3
3
  @brief Abort, ungracefully
4
4
  @details Will abort with a straightforward %abort if the condition is true.
5
5
 
6
+ @param [in] mac= (mf_abort.sas) Name of calling macro (is printed to the log)
7
+ @param [in] msg= ( ) Additional string to print to the log
8
+ @param [in] iftrue= (%str(1=1)) Conditional logic under which to perform the
9
+ abort
10
+
6
11
  <h4> Related Macros </h4>
7
12
  @li mp_abort.sas
8
13
 
@@ -10,7 +10,7 @@
10
10
  %mf_deletefile(&sasjswork/myfile.txt)
11
11
 
12
12
 
13
- @param filepath Full path to the target file
13
+ @param [in] file Full path to the target file
14
14
 
15
15
  @returns The return code from the fdelete() invocation
16
16
 
@@ -10,7 +10,7 @@
10
10
  expected results (depending on whether you 'expect' the result to be
11
11
  case insensitive in this context!)
12
12
 
13
- @param libds library.dataset
13
+ @param [in] libds library.dataset
14
14
  @return output returns 1 or 0
15
15
 
16
16
  <h4> Related Macros </h4>
@@ -4,7 +4,7 @@
4
4
  @details You can probably do without this macro as it is just a one liner.
5
5
  Mainly it is here as a convenient way to remember the syntax!
6
6
 
7
- @param fref the fileref to detect
7
+ @param [in] fref the fileref to detect
8
8
 
9
9
  @return output Returns 1 if found and 0 if not found. Note - it is possible
10
10
  that the fileref is found, but the file does not (yet) exist. If you need
@@ -16,7 +16,7 @@
16
16
  https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/baseplus.md#functionexists-macro
17
17
  ).
18
18
 
19
- @param [in] name (positional) - function name
19
+ @param [in] name function name
20
20
 
21
21
  @author Allan Bowe
22
22
  **/
@@ -6,8 +6,8 @@
6
6
 
7
7
  %put %mf_existVarList(sashelp.class, age sex name dummyvar);
8
8
 
9
- @param libds 2 part dataset or view reference
10
- @param varlist space separated variable names
9
+ @param [in] libds 2 part dataset or view reference
10
+ @param [in] varlist space separated variable names
11
11
 
12
12
  @version 9.2
13
13
  @author Allan Bowe
@@ -31,6 +31,7 @@
31
31
  %put %mf_getapploc(/some/location/jobs/extract/somejob/);
32
32
  %put %mf_getapploc(/some/location/tests/jobs/somejob/);
33
33
 
34
+ @param [in] pgm The _program value from which to extract the appLoc
34
35
 
35
36
  @author Allan Bowe
36
37
  **/
@@ -6,8 +6,8 @@
6
6
  %put Dataset label = %mf_getattrc(sashelp.class,LABEL);
7
7
  %put Member Type = %mf_getattrc(sashelp.class,MTYPE);
8
8
 
9
- @param libds library.dataset
10
- @param attr full list in [documentation](
9
+ @param [in] libds library.dataset
10
+ @param [in] attr full list in [documentation](
11
11
  https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000147794.htm)
12
12
  @return output returns result of the attrc value supplied, or -1 and log
13
13
  message if err.
@@ -6,8 +6,8 @@
6
6
  %put Number of observations=%mf_getattrn(sashelp.class,NLOBS);
7
7
  %put Number of variables = %mf_getattrn(sashelp.class,NVARS);
8
8
 
9
- @param libds library.dataset
10
- @param attr Common values are NLOBS and NVARS, full list in [documentation](
9
+ @param [in] libds library.dataset
10
+ @param [in] attr Common values are NLOBS and NVARS, full list in [documentation](
11
11
  http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm)
12
12
  @return output returns result of the attrn value supplied, or -1 and log
13
13
  message if err.
@@ -7,8 +7,9 @@
7
7
  %put %mf_getkeyvalue(someindex)
8
8
 
9
9
 
10
- @param key Provide a key on which to perform the lookup
11
- @param libds= define the target table which holds the parameters
10
+ @param [in] key Provide a key on which to perform the lookup
11
+ @param [in] libds= (work.mp_setkeyvalue) The library.dataset which holds the
12
+ parameters
12
13
 
13
14
  @version 9.2
14
15
  @author Allan Bowe
@@ -12,7 +12,7 @@
12
12
  @li SASJS
13
13
  @li BASESAS
14
14
 
15
- @param switch the param for which to return a platform specific variable
15
+ @param [in] switch the param for which to return a platform specific variable
16
16
 
17
17
  <h4> SAS Macros </h4>
18
18
  @li mf_mval.sas
@@ -8,7 +8,7 @@
8
8
  returns:
9
9
  > dbo
10
10
 
11
- @param libref Library reference (also accepts a 2 level libds ref).
11
+ @param [in] libref Library reference (also accepts a 2 level libds ref).
12
12
 
13
13
  @return output returns the library schema for the FIRST library encountered
14
14
 
@@ -19,7 +19,7 @@
19
19
  @param [in] prefix= (mclib) first part of the returned libref. As librefs can
20
20
  be as long as 8 characters, a maximum length of 7 characters is premitted
21
21
  for this prefix.
22
- @param [in] maxtries= Deprecated parameter. Remains here to ensure a
22
+ @param [in] maxtries= (1000) Deprecated parameter. Remains here to ensure a
23
23
  non-breaking change. Will be removed in v5.
24
24
 
25
25
  @version 9.2
@@ -10,7 +10,7 @@
10
10
 
11
11
  > MCc59c750610321d4c8bf75faadbcd22
12
12
 
13
- @param prefix= set a prefix for the new name
13
+ @param [in] prefix= (MC) Sets a prefix for the new name
14
14
 
15
15
  @version 9.3
16
16
  @author Allan Bowe
@@ -13,8 +13,6 @@
13
13
  %let user= %mf_getUser();
14
14
  %put &user;
15
15
 
16
- @param type - do not use, may be deprecated in a future release
17
-
18
16
  @return SYSUSERID (if workspace server)
19
17
  @return _METAPERSON (if stored process server)
20
18
  @return SYS_COMPUTE_SESSION_OWNER (if Viya compute session)
@@ -13,9 +13,9 @@
13
13
  <h4> Related Macros </h4>
14
14
  @li mp_setkeyvalue.sas
15
15
 
16
- @param libds dataset to query
17
- @param variable the variable which contains the value to return.
18
- @param filter contents of where clause
16
+ @param [in] libds dataset to query
17
+ @param [in] variable the variable which contains the value to return.
18
+ @param [in] filter= (1) contents of where clause
19
19
 
20
20
  @version 9.2
21
21
  @author Allan Bowe
@@ -25,7 +25,8 @@
25
25
 
26
26
  @param [in] libds Two part dataset (or view) reference.
27
27
  @param [in] var Variable name for which a format should be returned
28
- @param [in] force=(0) Set to 1 to supply a default if the variable has no format
28
+ @param [in] force= (0) Set to 1 to supply a default if the variable has no
29
+ format
29
30
  @returns outputs format
30
31
 
31
32
  @author Allan Bowe
@@ -18,8 +18,8 @@
18
18
  8
19
19
  NOTE: Variable renegade does not exist in test
20
20
 
21
- @param libds Two part dataset (or view) reference.
22
- @param var Variable name for which a length should be returned
21
+ @param [in] libds Two part dataset (or view) reference.
22
+ @param [in] var Variable name for which a length should be returned
23
23
  @returns outputs length
24
24
 
25
25
  @author Allan Bowe
@@ -21,8 +21,8 @@ returns:
21
21
 
22
22
  > NOTE: Variable renegade does not exist in test
23
23
 
24
- @param libds Two part dataset (or view) reference.
25
- @param var Variable name for which a position should be returned
24
+ @param [in] libds Two part dataset (or view) reference.
25
+ @param [in] var Variable name for which a position should be returned
26
26
 
27
27
  @author Allan Bowe
28
28
  @version 9.2
@@ -13,8 +13,8 @@ Usage:
13
13
 
14
14
 
15
15
 
16
- @param libds Two part dataset (or view) reference.
17
- @param var the variable name to be checked
16
+ @param [in] libds Two part dataset (or view) reference.
17
+ @param [in] var the variable name to be checked
18
18
  @return output returns C or N depending on variable type. If variable
19
19
  does not exist then a blank is returned and a note is written to the log.
20
20
 
@@ -10,7 +10,7 @@
10
10
  returns:
11
11
  > TEMP
12
12
 
13
- @param fref The fileref to check
13
+ @param [in] fref The fileref to check
14
14
 
15
15
  @returns The XENGINE value in sashelp.vextfl or 0 if not found.
16
16
 
@@ -11,8 +11,8 @@
11
11
  %put Now we have run %mf_increment(cnt) lines;
12
12
  %put There are %mf_increment(cnt) lines in total;
13
13
 
14
- @param [in] MACRO_NAME the name of the macro variable to increment
15
- @param [in] ITER= The amount to add or subtract to the macro
14
+ @param [in] macro_name The name of the macro variable to increment
15
+ @param [in] incr= (1) The amount to add or subtract to the macro
16
16
 
17
17
  <h4> Related Files </h4>
18
18
  @li mf_increment.test.sas
@@ -12,7 +12,7 @@
12
12
  inspiration:
13
13
  https://support.sas.com/resources/papers/proceedings09/022-2009.pdf
14
14
 
15
- @param param VALUE to be checked
15
+ @param [in] Param VALUE to be checked
16
16
 
17
17
  @return output returns 1 (if blank) else 0
18
18
 
package/base/mf_isdir.sas CHANGED
@@ -9,7 +9,7 @@
9
9
  With thanks and full credit to Andrea Defronzo -
10
10
  https://www.linkedin.com/in/andrea-defronzo-b1a47460/
11
11
 
12
- @param path full path of the file/directory to be checked
12
+ @param [in] path Full path of the file/directory to be checked
13
13
 
14
14
  @return output returns 1 if path is a directory, 0 if it is not
15
15
 
package/base/mf_loc.sas CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
  %put %mf_loc(POF); %*location of PlatformObjectFramework tools;
8
8
 
9
+ @param [in] loc The item to locate, eg:
10
+ @li PLAATFORMOBJECTFRAMEWORK (or POF)
11
+ @li VIYACONFG
12
+
9
13
  @version 9.2
10
14
  @author Allan Bowe
11
15
  **/
@@ -15,7 +19,8 @@
15
19
  %local root;
16
20
 
17
21
  %if &loc=POF or &loc=PLATFORMOBJECTFRAMEWORK %then %do;
18
- %let root=%substr(%sysget(SASROOT),1,%index(%sysget(SASROOT),SASFoundation)-2);
22
+ %let root=%sysget(SASROOT);
23
+ %let root=%substr(&root,1,%index(&root,SASFoundation)-2);
19
24
  %let root=&root/SASPlatformObjectFramework/&sysver;
20
25
  %put Batch tools located at: &root;
21
26
  &root
package/base/mf_mkdir.sas CHANGED
@@ -7,7 +7,7 @@ Usage:
7
7
  %mf_mkdir(/some/path/name)
8
8
 
9
9
 
10
- @param dir relative or absolute pathname. Unquoted.
10
+ @param [in] dir Relative or absolute pathname. Unquoted.
11
11
  @version 9.2
12
12
 
13
13
  **/
package/base/mf_mval.sas CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  %if %mf_mval(maynotexist)=itdid %then %do;
10
10
 
11
+ @param [in] var The macro variable NAME to return the (possible) value for
12
+
11
13
  @version 9.2
12
14
  @author Allan Bowe
13
15
  **/
package/base/mf_nobs.sas CHANGED
@@ -9,7 +9,7 @@
9
9
  <h4> SAS Macros </h4>
10
10
  @li mf_getattrn.sas
11
11
 
12
- @param libds library.dataset
12
+ @param [in] libds library.dataset
13
13
 
14
14
  @return output returns result of the attrn value supplied, or log message
15
15
  if err.
@@ -11,8 +11,8 @@
11
11
  <h4> SAS Macros </h4>
12
12
 
13
13
 
14
- @param basestr The string to be modified
15
- @param trimstr The string to be removed from the end of `basestr`, if it
14
+ @param [in] basestr The string to be modified
15
+ @param [in] trimstr The string to be removed from the end of `basestr`, if it
16
16
  exists
17
17
 
18
18
  @return output returns result with the value of `trimstr` removed from the end
@@ -13,8 +13,8 @@
13
13
  returns:
14
14
  > blah blaaah brah
15
15
 
16
- @param str1= string containing words to extract
17
- @param str2= used to compare with the extract string
16
+ @param [in] str1= () string containing words to extract
17
+ @param [in] str2= () used to compare with the extract string
18
18
 
19
19
  @warning CASE SENSITIVE!
20
20
 
@@ -16,8 +16,8 @@
16
16
  returns:
17
17
  > sss bram boo
18
18
 
19
- @param [in] str1= string containing words to extract
20
- @param [in] str2= used to compare with the extract string
19
+ @param [in] str1= () String containing words to extract
20
+ @param [in] str2= () Used to compare with the extract string
21
21
 
22
22
  @version 9.2
23
23
  @author Allan Bowe
@@ -21,8 +21,8 @@
21
21
  @param [in] mode= (O) Available options are A or O as follows:
22
22
  @li A APPEND mode, writes new records after the current end of the file.
23
23
  @li O OUTPUT mode, writes new records from the beginning of the file.
24
- @param [in] l1= First line
25
- @param [in] l2= Second line (etc through to l10)
24
+ @param [in] l1= () First line
25
+ @param [in] l2= () Second line (etc through to l10)
26
26
 
27
27
  <h4> Related Macros </h4>
28
28
  @li mf_writefile.test.sas
package/base/mp_abort.sas CHANGED
@@ -27,14 +27,15 @@
27
27
  currently investigating approaches to deal with this.
28
28
 
29
29
 
30
- @param mac= (mp_abort.sas) To contain the name of the calling macro. Do not
31
- use &sysmacroname as this will always resolve to MP_ABORT.
32
- @param msg= message to be returned
33
- @param iftrue= (1=1) Supply a condition for which the macro should be executed
34
- @param errds= (work.mp_abort_errds) There is no clean way to end a process
35
- within a %include called within a macro. Furthermore, there is no way to
36
- test if a macro is called within a %include. To handle this particular
37
- scenario, the %include should be switched for the mp_include.sas macro.
30
+ @param [in] mac= (mp_abort.sas) To contain the name of the calling macro. Do
31
+ not use &sysmacroname as this will always resolve to MP_ABORT.
32
+ @param [out] msg= message to be returned
33
+ @param [in] iftrue= (1=1) Condition under which the macro should be executed
34
+ @param [in] errds= (work.mp_abort_errds) There is no clean way to end a
35
+ process within a %include called within a macro. Furthermore, there is no
36
+ way to test if a macro is called within a %include. To handle this
37
+ particular scenario, the %include should be switched for the mp_include.sas
38
+ macro.
38
39
  This provides an indicator that we are running a macro within a \%include
39
40
  (`_SYSINCLUDEFILEDEVICE`) and allows us to provide a dataset with the abort
40
41
  values (msg, mac).
@@ -45,8 +46,8 @@
45
46
  @li msg (the message)
46
47
  @li mac (the mac param)
47
48
 
48
- @param mode= (REGULAR) If mode=INCLUDE then the &errds dataset is checked for
49
- an abort status.
49
+ @param [in] mode= (REGULAR) If mode=INCLUDE then the &errds dataset is checked
50
+ for an abort status.
50
51
  Valid values:
51
52
  @li REGULAR (default)
52
53
  @li INCLUDE
@@ -62,8 +62,8 @@
62
62
  7998580.8415
63
63
 
64
64
 
65
- @param var The (data step, character) variable to modify
66
- @param width= (8) The number of characters BEFORE the decimal point
65
+ @param [in] var The (data step, character) variable to modify
66
+ @param [in] width= (8) The number of characters BEFORE the decimal point
67
67
 
68
68
  <h4> SAS Macros </h4>
69
69
  @li mf_getuniquename.sas
@@ -17,8 +17,8 @@
17
17
  %mp_appendfile(baseref=tmp1, appendrefs=tmp2 tmp3)
18
18
 
19
19
 
20
- @param [in] baseref= Fileref of the base file (should exist)
21
- @param [in] appendrefs= One or more filerefs to be appended to the base
20
+ @param [in] baseref= (0) Fileref of the base file (should exist)
21
+ @param [in] appendrefs= (0) One or more filerefs to be appended to the base
22
22
  fileref. Space separated.
23
23
 
24
24
  @version 9.2
@@ -31,8 +31,8 @@
31
31
 
32
32
 
33
33
  @param [in] inds The input library.dataset to test for values
34
- @param [in] cols= The list of columns to check for
35
- @param [in] desc= (Testing observations) The user provided test description
34
+ @param [in] cols= (0) The list of columns to check for
35
+ @param [in] desc= (0) The user provided test description
36
36
  @param [in] test= (ALL) The test to apply. Valid values are:
37
37
  @li ALL - Test is a PASS if ALL columns exist in &inds
38
38
  @li ANY - Test is a PASS if ANY of the columns exist in &inds
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
  @param [in] indscol The input library.dataset.column to test for values
39
- @param [in] checkvals= A library.dataset.column value containing a UNIQUE
39
+ @param [in] checkvals= (0) A library.dataset.column value containing a UNIQUE
40
40
  list of values to be compared against the source (indscol).
41
41
  @param [in] desc= (Testing observations) The user provided test description
42
42
  @param [in] test= (ALLVALS) The test to apply. Valid values are:
@@ -28,8 +28,8 @@
28
28
  put _infile_;
29
29
  run;
30
30
 
31
- @param [in] inref= Fileref of the input file (should exist)
32
- @param [out] outref= Output fileref. If it does not exist, it is created.
31
+ @param [in] inref= (0) Fileref of the input file (should exist)
32
+ @param [out] outref= (0) Output fileref. If it does not exist, it is created.
33
33
  @param [in] action= (ENCODE) The action to take. Valid values:
34
34
  @li ENCODE - Convert the file to base64 format
35
35
  @li DECODE - Decode the file from base64 format
@@ -22,16 +22,17 @@
22
22
  %mp_binarycopy(inref=tmp1, outref=tmp2, mode=APPEND)
23
23
 
24
24
 
25
- @param [in] inloc quoted "path/and/filename.ext" of the file to be copied
26
- @param [out] outloc quoted "path/and/filename.ext" of the file to be created
27
- @param [in] inref (____in) If provided, this fileref will take precedence over
25
+ @param [in] inloc= () quoted "path/and/filename.ext" of the file to be copied
26
+ @param [out] outloc= () quoted "path/and/filename.ext" of the file to create
27
+ @param [in] inref= (____in) If provided, this fileref takes precedence over
28
28
  the `inloc` parameter
29
- @param [out] outref (____in) If provided, this fileref will take precedence
29
+ @param [out] outref= (____in) If provided, this fileref takes precedence
30
30
  over the `outloc` parameter. It must already exist!
31
- @param [in] mode (CREATE) Valid values:
31
+ @param [in] mode= (CREATE) Valid values:
32
32
  @li CREATE - Create the file (even if it already exists)
33
33
  @li APPEND - Append to the file (don't overwrite)
34
- @param iftrue= (1=1) Supply a condition for which the macro should be executed
34
+ @param [in] iftrue= (1=1)
35
+ Supply a condition for which the macro should be executed
35
36
 
36
37
  @returns nothing
37
38
 
package/base/mp_chop.sas CHANGED
@@ -44,7 +44,7 @@
44
44
  For more examples, see mp_chop.test.sas
45
45
 
46
46
  @param [in] infile The QUOTED path to the file on which to perform the chop
47
- @param [in] matchvar= Macro variable NAME containing the string to split by
47
+ @param [in] matchvar= () Macro variable NAME containing the string to split by
48
48
  @param [in] matchpoint= (START) Valid values:
49
49
  @li START - chop at the beginning of the string in `matchvar`.
50
50
  @li END - chop at the end of the string in `matchvar`.
@@ -54,7 +54,8 @@
54
54
  @li FIRST - keep the section of the file before the chop
55
55
  @li LAST - keep the section of the file after the chop
56
56
  @param [in] mdebug= (0) Set to 1 to provide macro debugging
57
- @param outfile= (0) Optional QUOTED path to the adjusted output file (avoids
57
+ @param [out] outfile= (0)
58
+ Optional QUOTED path to the adjusted output file (avoids
58
59
  overwriting the first file).
59
60
 
60
61
  <h4> SAS Macros </h4>
@@ -12,11 +12,12 @@
12
12
  fileref mycsv "/path/your/csv";
13
13
  %mp_cleancsv(in=mycsv,out=/path/new.csv)
14
14
 
15
- @param in= (NOTPROVIDED) Provide path or fileref to input csv. If a period is
15
+ @param [in] in= (NOTPROVIDED)
16
+ Provide path or fileref to input csv. If a period is
16
17
  found, it is assumed to be a file.
17
- @param out= (NOTPROVIDED) Output path or fileref to output csv. If a period
18
- is found, it is assumed to be a file.
19
- @param qchar= ('22'x) Quote char - hex code 22 is the double quote.
18
+ @param [in] out= (NOTPROVIDED) Output path or fileref to output csv.
19
+ If a period is found, it is assumed to be a file.
20
+ @param [in] qchar= ('22'x) Quote char - hex code 22 is the double quote.
20
21
 
21
22
  @version 9.2
22
23
  @author Allan Bowe
@@ -18,7 +18,7 @@
18
18
 
19
19
  @param [in] source Unquoted path to the folder to copy from.
20
20
  @param [out] target Unquoted path to the folder to copy to.
21
- @param [in] copymax=(MAX) Set to a positive integer to indicate the level of
21
+ @param [in] copymax= (MAX) Set to a positive integer to indicate the level of
22
22
  subdirectory copy recursion - eg 3, to go `./3/levels/deep`. For unlimited
23
23
  recursion, set to MAX.
24
24
 
@@ -18,11 +18,11 @@
18
18
  %mp_deleteconstraints(inds=work.constraints,outds=dropped,execute=YES)
19
19
  %mp_createconstraints(inds=work.constraints,outds=created,execute=YES)
20
20
 
21
- @param inds= (work.mp_getconstraints) The input table containing the
21
+ @param [in] inds= (work.mp_getconstraints) The input table containing the
22
22
  constraint info
23
- @param outds= (work.mp_createconstraints) A table containing the create
23
+ @param [out] outds= (work.mp_createconstraints) A table containing the create
24
24
  statements (create_statement column)
25
- @param execute= (NO) To actually create, use YES.
25
+ @param [in] execute= (NO) To actually create, use YES.
26
26
 
27
27
  <h4> Related Files </h4>
28
28
  @li mp_getconstraints.sas
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  @file mp_createwebservice.sas
3
- @brief Create a web service in SAS 9, Viya or SASjs Server
3
+ @brief Create a web service in SAS 9, Viya or SASjs Server (legacy)
4
4
  @details This is actually a wrapper for mx_createwebservice.sas, remaining
5
5
  for legacy purposes. For new apps, use mx_createwebservice.sas.
6
6
 
@@ -19,11 +19,12 @@
19
19
  %mp_csv2ds(inref=mycsv,outds=myds,baseds=sashelp.class)
20
20
 
21
21
 
22
- @param inref= fileref to the CSV
23
- @param outds= output ds (lib.ds format)
24
- @param view= Set to YES or NO to determine whether the output should be
25
- a view or not. Default is NO (not a view).
26
- @param baseds= Template dataset on which to create the input statement.
22
+ @param [in] inref= (0) Fileref to the CSV
23
+ @param [out] outds= (0) Output ds (lib.ds format)
24
+ @param [in] view= (NO) Set to YES or NO to determine whether the output
25
+ should be a view or not. Default is NO (not a view).
26
+ @param [in] baseds= (0)
27
+ Template dataset on which to create the input statement.
27
28
  Is used to determine types, lengths, and any informats.
28
29
 
29
30
  @version 9.2
@@ -17,9 +17,11 @@
17
17
  %mp_getconstraints(lib=work,ds=example,outds=work.constraints)
18
18
  %mp_deleteconstraints(inds=work.constraints,outds=dropped,execute=YES)
19
19
 
20
- @param inds= The input table containing the constraint info
21
- @param outds= a table containing the drop statements (drop_statement column)
22
- @param execute= `YES|NO` - default is NO. To actually drop, use YES.
20
+ @param [in] inds= (mp_getconstraints)
21
+ The input table containing constraint info
22
+ @param [out] outds= (mp_deleteconstraints)
23
+ Table containing the drop statements (drop_statement column)
24
+ @param [in] execute= (NO) `YES|NO` - default is NO. To actually drop, use YES.
23
25
 
24
26
 
25
27
  @version 9.2
@@ -15,7 +15,7 @@
15
15
 
16
16
  %mp_deletefolder(&rootdir)
17
17
 
18
- @param path Unquoted path to the folder to delete.
18
+ @param [in] folder Unquoted path to the folder to delete.
19
19
 
20
20
  <h4> SAS Macros </h4>
21
21
  @li mf_getuniquename.sas