@sasjs/core 4.46.5 → 4.47.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 (139) hide show
  1. package/.env.server +3 -3
  2. package/README.md +3 -2
  3. package/base/mf_abort.sas +5 -0
  4. package/base/mf_deletefile.sas +1 -1
  5. package/base/mf_existds.sas +1 -1
  6. package/base/mf_existfileref.sas +1 -1
  7. package/base/mf_existfunction.sas +1 -1
  8. package/base/mf_existvarlist.sas +2 -2
  9. package/base/mf_getapploc.sas +1 -0
  10. package/base/mf_getattrc.sas +2 -2
  11. package/base/mf_getattrn.sas +2 -2
  12. package/base/mf_getkeyvalue.sas +3 -2
  13. package/base/mf_getplatform.sas +1 -1
  14. package/base/mf_getschema.sas +1 -1
  15. package/base/mf_getuniquelibref.sas +1 -1
  16. package/base/mf_getuniquename.sas +1 -1
  17. package/base/mf_getuser.sas +0 -2
  18. package/base/mf_getvalue.sas +3 -3
  19. package/base/mf_getvarformat.sas +2 -1
  20. package/base/mf_getvarlen.sas +2 -2
  21. package/base/mf_getvarnum.sas +2 -2
  22. package/base/mf_getvartype.sas +2 -2
  23. package/base/mf_getxengine.sas +1 -1
  24. package/base/mf_increment.sas +2 -2
  25. package/base/mf_isblank.sas +1 -1
  26. package/base/mf_isdir.sas +1 -1
  27. package/base/mf_loc.sas +6 -1
  28. package/base/mf_mkdir.sas +1 -1
  29. package/base/mf_mval.sas +2 -0
  30. package/base/mf_nobs.sas +1 -1
  31. package/base/mf_trimstr.sas +2 -2
  32. package/base/mf_wordsinstr1andstr2.sas +2 -2
  33. package/base/mf_wordsinstr1butnotstr2.sas +2 -2
  34. package/base/mf_writefile.sas +2 -2
  35. package/base/mp_abort.sas +11 -10
  36. package/base/mp_aligndecimal.sas +2 -2
  37. package/base/mp_appendfile.sas +2 -2
  38. package/base/mp_applyformats.sas +5 -5
  39. package/base/mp_assertcols.sas +2 -2
  40. package/base/mp_assertcolvals.sas +1 -1
  41. package/base/mp_base64copy.sas +2 -2
  42. package/base/mp_binarycopy.sas +7 -6
  43. package/base/mp_chop.sas +3 -2
  44. package/base/mp_cleancsv.sas +5 -4
  45. package/base/mp_copyfolder.sas +2 -2
  46. package/base/mp_createconstraints.sas +3 -3
  47. package/base/mp_createwebservice.sas +1 -1
  48. package/base/mp_csv2ds.sas +6 -5
  49. package/base/mp_deleteconstraints.sas +5 -3
  50. package/base/mp_deletefolder.sas +1 -1
  51. package/base/mp_dictionary.sas +1 -1
  52. package/base/mp_distinctfmtvalues.sas +5 -5
  53. package/base/mp_ds2ddl.sas +14 -2
  54. package/base/mp_dsmeta.sas +2 -2
  55. package/base/mp_filtercheck.sas +6 -4
  56. package/base/mp_filtergenerate.sas +2 -2
  57. package/base/mp_filterstore.sas +4 -3
  58. package/base/mp_getcols.sas +3 -2
  59. package/base/mp_getdbml.sas +4 -4
  60. package/base/mp_getddl.sas +15 -10
  61. package/base/mp_gsubfile.sas +6 -6
  62. package/base/mp_guesspk.sas +1 -1
  63. package/base/mp_hashdataset.sas +1 -1
  64. package/base/mp_lib2cards.sas +7 -7
  65. package/base/mp_md5.sas +2 -2
  66. package/base/mp_perflog.sas +3 -3
  67. package/base/mp_prevobs.sas +5 -5
  68. package/base/mp_recursivejoin.sas +7 -6
  69. package/base/mp_replace.sas +5 -4
  70. package/base/mp_runddl.sas +3 -3
  71. package/base/mp_searchcols.sas +7 -6
  72. package/base/mp_stprequests.sas +4 -3
  73. package/base/mp_testjob.sas +2 -2
  74. package/base/mp_testwritespeedlibrary.sas +3 -3
  75. package/base/mp_tree.sas +2 -2
  76. package/base/mp_unzip.sas +5 -4
  77. package/base/mp_updatevarlength.sas +3 -3
  78. package/base/mp_validatecol.sas +2 -2
  79. package/base/mp_wait4file.sas +1 -1
  80. package/base/mp_webin.sas +1 -1
  81. package/base/mp_zip.sas +5 -5
  82. package/ddl/mddl_sas_cntlout.sas +12 -1
  83. package/meta/mm_adduser2group.sas +3 -3
  84. package/meta/mm_assigndirectlib.sas +10 -12
  85. package/meta/mm_assignlib.sas +2 -2
  86. package/meta/mm_createapplication.sas +13 -10
  87. package/meta/mm_createdataset.sas +5 -5
  88. package/meta/mm_createdocument.sas +7 -7
  89. package/meta/mm_createfolder.sas +5 -5
  90. package/meta/mm_createlibrary.sas +20 -17
  91. package/meta/mm_createstp.sas +22 -18
  92. package/meta/mm_createwebservice.sas +15 -14
  93. package/meta/mm_deletedocument.sas +1 -1
  94. package/meta/mm_deletelibrary.sas +1 -1
  95. package/meta/mm_deletestp.sas +1 -1
  96. package/meta/mm_getcols.sas +2 -2
  97. package/meta/mm_getdetails.sas +6 -3
  98. package/meta/mm_getdirectories.sas +4 -3
  99. package/meta/mm_getdocument.sas +4 -4
  100. package/meta/mm_getgroupmembers.sas +5 -5
  101. package/meta/mm_getlibs.sas +2 -2
  102. package/meta/mm_getobjects.sas +2 -2
  103. package/meta/mm_getpublictypes.sas +2 -0
  104. package/meta/mm_getrepos.sas +2 -1
  105. package/meta/mm_getroles.sas +2 -1
  106. package/meta/mm_getservercontexts.sas +2 -1
  107. package/meta/mm_getstpinfo.sas +1 -1
  108. package/meta/mm_getstps.sas +8 -7
  109. package/meta/mm_gettableid.sas +4 -4
  110. package/meta/mm_gettree.sas +4 -4
  111. package/meta/mm_gettypes.sas +2 -1
  112. package/meta/mm_getusers.sas +2 -4
  113. package/meta/mm_getwebappsrvprops.sas +1 -1
  114. package/meta/mm_tree.sas +3 -3
  115. package/meta/mm_updateappextension.sas +8 -8
  116. package/meta/mm_updatedocument.sas +6 -6
  117. package/meta/mm_updatestpservertype.sas +2 -2
  118. package/meta/mm_updatestpsourcecode.sas +6 -4
  119. package/metax/mmx_createmetafolder.sas +3 -3
  120. package/metax/mmx_deletemetafolder.sas +3 -3
  121. package/metax/mmx_spkexport.sas +6 -5
  122. package/package.json +1 -1
  123. package/server/ms_createwebservice.sas +4 -2
  124. package/viya/mfv_existfile.sas +2 -1
  125. package/viya/mfv_existfolder.sas +1 -1
  126. package/viya/mfv_existsashdat.sas +4 -4
  127. package/viya/mv_createjob.sas +16 -14
  128. package/viya/mv_createwebservice.sas +4 -2
  129. package/viya/mv_deletefoldermember.sas +8 -6
  130. package/viya/mv_deletejes.sas +7 -5
  131. package/viya/mv_getclients.sas +2 -4
  132. package/viya/mv_getgroupmembers.sas +8 -5
  133. package/viya/mv_getgroups.sas +6 -4
  134. package/viya/mv_getjobstate.sas +6 -4
  135. package/viya/mv_getusergroups.sas +7 -4
  136. package/viya/mv_getusers.sas +8 -6
  137. package/viya/mv_registerclient.sas +4 -4
  138. package/viya/mv_tokenauth.sas +14 -13
  139. package/viya/mv_tokenrefresh.sas +11 -10
@@ -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
@@ -29,7 +29,7 @@
29
29
 
30
30
  ![](https://user-images.githubusercontent.com/4420615/188278365-2987db97-0594-4a39-ac81-dbacdef5cdc8.png)
31
31
 
32
- @param lib= (WORK) The libref in which to create the views
32
+ @param [in] lib= (WORK) The libref in which to create the views
33
33
 
34
34
  <h4> Related Files </h4>
35
35
  @li mp_dictionary.test.sas
@@ -7,11 +7,11 @@
7
7
 
8
8
  %mp_distinctfmtvalues(libds=sashelp.class,var=age,outvar=age,outds=test)
9
9
 
10
- @param libds input dataset
11
- @param var variable to get distinct values for
12
- @param outvar variable to create. Default: `formatted_value`
13
- @param outds dataset to create. Default: work.mp_distinctfmtvalues
14
- @param varlen length of variable to create (default 200)
10
+ @param [in] libds= () input dataset
11
+ @param [in] var= (0) variable to get distinct values for
12
+ @param [out] outvar= (formatteed_value) variable to create.
13
+ @param [out] outds= (work.mp_distinctfmtvalues) dataset to create.
14
+ @param [in] varlen= (2000) length of variable to create
15
15
 
16
16
  @version 9.2
17
17
  @author Allan Bowe
@@ -1,8 +1,20 @@
1
1
  /**
2
2
  @file
3
- @brief A wrapper for mp_getddl.sas
4
- @details In the next release, this will be the main version.
3
+ @brief Fetches DDL for a specific table
4
+ @details Uses mp_getddl under the hood
5
5
 
6
+ @param [in] libds library.dataset to create ddl for
7
+ @param [in] fref= (getddl) the fileref to which to _append_ the DDL. If it
8
+ does not exist, it will be created.
9
+ @param [in] flavour= (SAS) The type of DDL to create. Options:
10
+ @li SAS
11
+ @li TSQL
12
+
13
+ @param [in]showlog= (NO) Set to YES to show the DDL in the log
14
+ @param [in] schema= () Choose a preferred schema name (default is to use
15
+ actual schema, else libref)
16
+ @param [in] applydttm= (NO) For non SAS DDL, choose if columns are created with
17
+ native datetime2 format or regular decimal type
6
18
 
7
19
  <h4> SAS Macros </h4>
8
20
  @li mp_getddl.sas
@@ -49,8 +49,8 @@
49
49
  https://support.sas.com/resources/papers/proceedings14/1549-2014.pdf) by
50
50
  [Louise Hadden](https://www.linkedin.com/in/louisehadden/).
51
51
 
52
- @param libds The library.dataset to export the metadata for
53
- @param outds= (work.dsmeta) The output table to contain the metadata
52
+ @param [in] libds The library.dataset to export the metadata for
53
+ @param [out] outds= (work.dsmeta) The output table to contain the metadata
54
54
 
55
55
  <h4> Related Files </h4>
56
56
  @li mp_dsmeta.test.sas
@@ -37,10 +37,12 @@
37
37
  @param [in] targetds= The target dataset against which to verify VARIABLE_NM.
38
38
  This must be available (ie, the library must be assigned).
39
39
  @param [out] abort= (YES) If YES will call mp_abort.sas on any exceptions
40
- @param [out] outds= The output table, which is a copy of the &inds. table
41
- plus a REASON_CD column, containing only bad records. If bad records found,
42
- the SYSCC value will be set to 1008 (general data problem). Downstream
43
- processes should check this table (and return code) before continuing.
40
+ @param [out] outds= (work.badrecords) The output table, which is a copy of the
41
+ &inds. table plus a REASON_CD column, containing only bad records.
42
+ If bad records are found, the SYSCC value will be set to 1008
43
+ (a general data problem).
44
+ Downstream processes should check this table (and return code) before
45
+ continuing.
44
46
 
45
47
  <h4> SAS Macros </h4>
46
48
  @li mp_abort.sas
@@ -51,8 +51,8 @@
51
51
  > )
52
52
 
53
53
  @param [in] inds The input table with query values
54
- @param [out] outref= The output fileref to contain the filter clause. Will
55
- be created (or replaced).
54
+ @param [out] outref= (filter) The output fileref to contain the filter clause.
55
+ Will be created (or replaced).
56
56
 
57
57
  <h4> Related Macros </h4>
58
58
  @li mp_filtercheck.sas
@@ -44,9 +44,10 @@
44
44
  mp_coretable.sas as follows: `mp_coretable(LOCKTABLE)`.
45
45
  @param [in] maxkeytable= (0) Optional permanent reference table used for
46
46
  retained key tracking. Described in mp_retainedkey.sas.
47
- @param [in] mdebug= set to 1 to enable DEBUG messages
48
- @param [out] outresult= The result table with the FILTER_RK
49
- @param [out] outquery= The original query, taken as extract after table load
47
+ @param [in] mdebug= (1) set to 1 to enable DEBUG messages
48
+ @param [out] outresult= (work.result) The result table with the FILTER_RK
49
+ @param [out] outquery= (work.query) The original query, taken as extract
50
+ after table load
50
51
 
51
52
 
52
53
  <h4> SAS Macros </h4>
@@ -12,14 +12,15 @@
12
12
 
13
13
  %mp_getcols(sashelp.airline,outds=work.myds)
14
14
 
15
- @param ds The dataset from which to obtain column metadata
16
- @param outds= (work.cols) The output dataset to create. Sample data:
15
+ @param [in] ds The dataset from which to obtain column metadata
16
+ @param [out] outds= (work.cols) The output dataset to create. Sample data:
17
17
  |NAME:$32.|LENGTH:best.|VARNUM:best.|LABEL:$256.|FMTNAME:$32.|FORMAT:$49.|TYPE:$1.|DDTYPE:$9.|
18
18
  |---|---|---|---|---|---|---|---|
19
19
  |`AIR `|`8 `|`2 `|`international airline travel (thousands) `|` `|`8. `|`N `|`NUMERIC `|
20
20
  |`DATE `|`8 `|`1 `|`DATE `|`MONYY `|`MONYY. `|`N `|`DATE `|
21
21
  |`REGION `|`3 `|`3 `|`REGION `|` `|`$3. `|`C `|`CHARACTER `|
22
22
 
23
+
23
24
  <h4> Related Macros </h4>
24
25
  @li mf_getvarlist.sas
25
26
  @li mm_getcols.sas
@@ -23,10 +23,10 @@
23
23
  @li mf_getquotedstr.sas
24
24
  @li mp_getconstraints.sas
25
25
 
26
- @param liblist= Space seperated list of librefs to take as
27
- input (Default=SASHELP)
28
- @param outref= Fileref to contain the DBML (Default=getdbml)
29
- @param showlog= set to YES to show the DBML in the log (Default is NO)
26
+ @param [in] liblist= (SASHELP) Space seperated list of librefs to take as
27
+ input
28
+ @param [out] outref= (getdbml) Fileref to contain the DBML
29
+ @param [in] showlog= (NO) set to YES to show the DBML in the log
30
30
 
31
31
  @version 9.3
32
32
  @author Allan Bowe
@@ -22,16 +22,21 @@
22
22
  @li mf_getvarcount.sas
23
23
  @li mp_getconstraints.sas
24
24
 
25
- @param lib libref of the library to create DDL for. Should be assigned.
26
- @param ds dataset to create ddl for (optional)
27
- @param fref= the fileref to which to _append_ the DDL. If it does not exist,
28
- it will be created.
29
- @param flavour= The type of DDL to create (default=SAS). Supported=TSQL
30
- @param showlog= Set to YES to show the DDL in the log
31
- @param schema= Choose a preferred schema name (default is to use actual schema
32
- ,else libref)
33
- @param applydttm= for non SAS DDL, choose if columns are created with native
34
- datetime2 format or regular decimal type
25
+ @param [in] libref Libref of the library to create DDL for. Should already
26
+ be assigned.
27
+ @param [in] ds dataset to create ddl for (optional)
28
+ @param [in] fref= (getddl) the fileref to which to _append_ the DDL. If it
29
+ does not exist, it will be created.
30
+ @param [in] flavour= (SAS) The type of DDL to create. Options:
31
+ @li SAS
32
+ @li TSQL
33
+
34
+ @param [in]showlog= (NO) Set to YES to show the DDL in the log
35
+ @param [in] schema= () Choose a preferred schema name (default is to use
36
+ actual schema, else libref)
37
+ @param [in] applydttm= (NO) For non SAS DDL, choose if columns are created
38
+ with native datetime2 format or regular decimal type
39
+
35
40
  @version 9.3
36
41
  @author Allan Bowe
37
42
  **/
@@ -22,15 +22,15 @@
22
22
  list;
23
23
  run;
24
24
 
25
- @param file= (0) The file to perform the substitution on
26
- @param patternvar= A macro variable containing the Lua
25
+ @param [in] file= (0) The file to perform the substitution on
26
+ @param [in] patternvar= A macro variable containing the Lua
27
27
  [pattern](https://www.lua.org/pil/20.2.html) to search for. Due to the use
28
28
  of special (magic) characters in Lua patterns, it is safer to pass the NAME
29
29
  of the macro variable containing the string, rather than the value itself.
30
- @param replacevar= The name of the macro variable containing the replacement
31
- _string_.
32
- @param outfile= (0) The file to write the output to. If zero, then the file
33
- is overwritten in-place.
30
+ @param [in] replacevar= ()
31
+ The name of the macro variable containing the replacement _string_.
32
+ @param [out] outfile= (0) The file to write the output to.
33
+ If zero, then the file is overwritten in-place.
34
34
 
35
35
  <h4> SAS Macros </h4>
36
36
  @li ml_gsubfile.sas
@@ -18,7 +18,7 @@
18
18
  %mp_guesspk(sashelp.class,outds=classpks)
19
19
 
20
20
  @param [in] baseds The dataset to analyse
21
- @param [out] outds= The output dataset to contain the possible PKs
21
+ @param [out] outds= (mp_guesspk) Output dataset to contain the possible PKs
22
22
  @param [in] max_guesses= (3) The total number of possible primary keys to
23
23
  generate. A table may have multiple (unlikely) PKs, so no need to list them
24
24
  all.
@@ -24,7 +24,7 @@
24
24
  @li mp_hashdirectory.sas
25
25
 
26
26
  @param [in] libds dataset to hash
27
- @param [in] salt= Provide a salt (could be, for instance, the dataset name)
27
+ @param [in] salt= () Provide a salt (could be, for instance, the dataset name)
28
28
  @param [in] iftrue= (1=1) A condition under which the macro should be executed
29
29
  @param [out] outds= (work._data_) The output dataset to create. This
30
30
  will contain one column (hashkey) with one observation (a $hex32.
@@ -24,19 +24,19 @@
24
24
  @li mf_trimstr.sas
25
25
  @li mp_ds2cards.sas
26
26
 
27
- @param [in] lib= Library in which to convert all datasets
28
- @param [out] outloc= Location in which to store output. Defaults to WORK
29
- library. No quotes.
30
- @param [out] outfile= Optional output file NAME - if provided, then will create
31
- a single output file instead of one file per input table.
32
- @param [in] maxobs= limit output to the first <code>maxobs</code> observations
27
+ @param [in] lib= () Library in which to convert all datasets
28
+ @param [out] outloc= (%sysfunc(pathname(work))) Location in which to store
29
+ output. No quotes.
30
+ @param [out] outfile= (0) Optional output file NAME - if provided, then
31
+ will create a single output file instead of one file per input table.
32
+ @param [in] maxobs= (max) limit output to the first <code>maxobs</code> rows
33
33
 
34
34
  @version 9.2
35
35
  @author Allan Bowe
36
36
  **/
37
37
 
38
38
  %macro mp_lib2cards(lib=
39
- ,outloc=%sysfunc(pathname(work)) /* without trailing slash */
39
+ ,outloc=%sysfunc(pathname(work))
40
40
  ,maxobs=max
41
41
  ,random_sample=NO
42
42
  ,outfile=0
package/base/mp_md5.sas CHANGED
@@ -28,8 +28,8 @@
28
28
  @li Global option: `options dsoptions=nonote2err;`
29
29
  @li Data step option: `data YOURLIB.YOURDATASET /nonote2err;`
30
30
 
31
- @param cvars= Space seperated list of character variables
32
- @param nvars= Space seperated list of numeric variables
31
+ @param [in] cvars= () Space seperated list of character variables
32
+ @param [in] nvars= () Space seperated list of numeric variables
33
33
 
34
34
  <h4> Related Programs </h4>
35
35
  @li mp_init.sas
@@ -11,9 +11,9 @@
11
11
  %mp_perflog(finished)
12
12
 
13
13
 
14
- @param label Provide label to go into the control dataset
15
- @param libds= Provide a dataset in which to store performance stats. Default
16
- name is <code>work.mp_perflog</code>;
14
+ @param [in] label Provide label to go into the control dataset
15
+ @param [in] libds= (work.mp_perflog) Provide a dataset in which to store
16
+ performance stats. Default name is <code>work.mp_perflog</code>;
17
17
 
18
18
  @version 9.2
19
19
  @author Allan Bowe
@@ -34,12 +34,12 @@
34
34
  Credit is made to `data _null_` for authoring this very helpful paper:
35
35
  https://www.lexjansen.com/pharmasug/2008/cc/CC08.pdf
36
36
 
37
- @param action Either FETCH a current or previous record, or INITialise.
38
- @param record The relative (to current) position of the previous observation
37
+ @param [in] action Either FETCH a current or previous record, or INITialise.
38
+ @param [in] record The relative (to current) position of the previous row
39
39
  to return.
40
- @param history= The number of records to retain in the hash table. Default=5
41
- @param prefix= the prefix to give to the variables used to store the hash name
42
- and index. Default=mp_prevobs
40
+ @param [in] history= (5) The number of records to retain in the hash table.
41
+ @param [in] prefix= (mp_prevobs) The prefix to give to the variables used to
42
+ store the hash name and index.
43
43
 
44
44
  @version 9.2
45
45
  @author Allan Bowe
@@ -23,12 +23,13 @@
23
23
  ,childvar=c
24
24
  )
25
25
 
26
- @param base_ds= base table containing hierarchy (not modified)
27
- @param outds= the output dataset to create with the generated hierarchy
28
- @param matchval= the ultimate parent from which to filter
29
- @param parentvar= name of the parent variable
30
- @param childvar= name of the child variable (should be same type as parent)
31
- @param mdebug= set to 1 to prevent temp tables being dropped
26
+ @param [in] base_ds= base table containing hierarchy (not modified)
27
+ @param [out] outds= the output dataset to create with the generated hierarchy
28
+ @param [in] matchval= the ultimate parent from which to filter
29
+ @param [in] parentvar= name of the parent variable
30
+ @param [in] childvar= () name of the child variable (should be same type as
31
+ parent)
32
+ @param [in] mdebug= set to 1 to prevent temp tables being dropped
32
33
 
33
34
 
34
35
  @returns outds contains the following variables:
@@ -32,10 +32,11 @@
32
32
  Note - if you are running a version of SAS that will allow the io package in
33
33
  LUA, you can also use this macro: mp_gsubfile.sas
34
34
 
35
- @param infile The QUOTED path to the file on which to perform the substitution
36
- @param findvar= Macro variable NAME containing the string to search for
37
- @param replacevar= Macro variable NAME containing the replacement string
38
- @param outfile= (0) Optional QUOTED path to the adjusted output file (to
35
+ @param [in] infile The QUOTED path to the file on which to perform the
36
+ substitution
37
+ @param [in] findvar= Macro variable NAME containing the string to search for
38
+ @param [in] replacevar= Macro variable NAME containing the replacement string
39
+ @param [out] outfile= (0) Optional QUOTED path to the adjusted output file (to
39
40
  avoid overwriting the first file).
40
41
 
41
42
  <h4> SAS Macros </h4>
@@ -31,9 +31,9 @@
31
31
  %mp_runddl(/some/rootlib, exc=LIBREF3) * same as above ;
32
32
 
33
33
 
34
- @param path location of the DDL folder structure
35
- @param inc= list of librefs to include
36
- @param exc= list of librefs to exclude (takes precedence over inc=)
34
+ @param [in] path location of the DDL folder structure
35
+ @param [in] inc= list of librefs to include
36
+ @param [in] exc= list of librefs to exclude (takes precedence over inc=)
37
37
 
38
38
  @version 9.3
39
39
  @author Allan Bowe
@@ -9,12 +9,13 @@
9
9
 
10
10
  %mp_searchcols(libs=sashelp work, cols=name sex age)
11
11
 
12
- @param libs=(SASHELP) Space separated list of libraries to search for columns
13
- @param cols= Space separated list of column names to search for (not case
14
- sensitive)
15
- @param outds=(mp_searchcols) the table to create with the results. Will have
16
- one line per table match.
17
- @param match=(ANY) The match type. Valid values:
12
+ @param [in] libs= (SASHELP)
13
+ Space separated list of libraries to search for columns
14
+ @param [in] cols=
15
+ Space separated list of column names to search for (not case sensitive)
16
+ @param [out] outds= (mp_searchcols)
17
+ The table to create with the results. Will have one line per table match.
18
+ @param [in] match= (ANY) The match type. Valid values:
18
19
  @li ANY - The table contains at least one of the columns
19
20
  @li WILD - The table contains a column with a name that partially matches
20
21
 
@@ -21,9 +21,10 @@
21
21
  %mp_stprequests(status_cd=INIT, libds=YOURLIB.DATASET )
22
22
 
23
23
 
24
- @param status_cd= Use INIT for INIT and TERM for TERM events
25
- @param libds= Location of base table (library.dataset). To minimise risk
26
- of table locks, we HIGHLY recommend using a database (NOT a SAS dataset).
24
+ @param [in] status_cd= Use INIT for INIT and TERM for TERM events
25
+ @param [in] libds= (somelib.stp_requests) Location of base table
26
+ (library.dataset). To minimise risk of table locks, we HIGHLY recommend
27
+ using a database (NOT a SAS dataset).
27
28
  THE LIBRARY SHOULD BE ASSIGNED ALREADY - eg in autoexec or earlier in the
28
29
  init program proper.
29
30
 
@@ -8,8 +8,8 @@
8
8
  duration=60*5
9
9
  )
10
10
 
11
- @param [in] duration= the time in seconds which the job should run for. Actual
12
- time may vary, as the check is done in between steps. Default = 30 (seconds).
11
+ @param [in] duration= (30) The time in seconds which the job should run for.
12
+ Actual time may vary, as the check is done in between steps.
13
13
 
14
14
  <h4> SAS Macros </h4>
15
15
  @li mf_getuniquelibref.sas
@@ -11,9 +11,9 @@
11
11
  ,outds=work.results
12
12
  )
13
13
 
14
- @param lib= (WORK) The library in which to create the table
15
- @param size= (0.1) The size in GB of the table to create
16
- @param outds= (WORK.RESULTS) The output dataset to be created.
14
+ @param [in] lib= (WORK) The library in which to create the table
15
+ @param [in] size= (0.1) The size in GB of the table to create
16
+ @param [out] outds= (WORK.RESULTS) The output dataset to be created.
17
17
 
18
18
  <h4> SAS Macros </h4>
19
19
  @li mf_getuniquename.sas
package/base/mp_tree.sas CHANGED
@@ -15,8 +15,8 @@ https://communities.sas.com/t5/SAS-Programming/listing-all-files-within-a-direct
15
15
  https://communities.sas.com/t5/SAS-Programming/listing-all-files-of-all-types-from-all-subdirectories/m-p/334113/highlight/true#M75419
16
16
 
17
17
 
18
- @param dir= Directory to be scanned (default=/tmp)
19
- @param outds= Dataset to create (default=work.mp_tree)
18
+ @param [in] dir= (/tmp) Directory to be scanned
19
+ @param [out] outds= (work.mp_tree) Dataset to create
20
20
 
21
21
  @returns outds contains the following variables:
22
22
 
package/base/mp_unzip.sas CHANGED
@@ -13,11 +13,12 @@
13
13
 
14
14
  %mp_unzip(ziploc="/some/file.zip",outdir=/some/folder)
15
15
 
16
- More info: https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/
16
+ More info:
17
+ https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/
17
18
 
18
- @param ziploc= Fileref or quoted full path to zip file ("/path/to/file.zip")
19
- @param outdir= (%sysfunc(pathname(work))) Directory in which to write the
20
- outputs (created if non existant)
19
+ @param [in] ziploc= Fileref or quoted full path, eg: "/path/to/file.zip"
20
+ @param [out] outdir= (%sysfunc(pathname(work))) Directory in which to write
21
+ the outputs (created if needed)
21
22
 
22
23
  <h4> SAS Macros </h4>
23
24
  @li mf_mkdir.sas
@@ -14,9 +14,9 @@
14
14
  proc sql;
15
15
  describe table example;
16
16
 
17
- @param libds the library.dataset to be modified
18
- @param var The variable to modify
19
- @param len The new length to apply
17
+ @param [in] libds the library.dataset to be modified
18
+ @param [in] var The variable to modify
19
+ @param [in] len The new length to apply
20
20
 
21
21
  <h4> SAS Macros </h4>
22
22
  @li mf_existds.sas
@@ -71,7 +71,7 @@
71
71
  retain &tempcol;
72
72
  &tempcol=prxparse('/^[_a-z]\w{0,7}\.[_a-z]\w{0,31}$/i');
73
73
  if missing(&tempcol) then do;
74
- putlog "%str(ERR)OR: Invalid expression for LIBDS";
74
+ putlog 'ERR' +(-1) "OR: Invalid expression for LIBDS";
75
75
  stop;
76
76
  end;
77
77
  drop &tempcol;
@@ -85,7 +85,7 @@
85
85
  retain &tempcol;
86
86
  &tempcol=prxparse('/^[_a-z\$]\w{0,31}\.[0-9]*$/i');
87
87
  if missing(&tempcol) then do;
88
- putlog "%str(ERR)OR: Invalid expression for FORMAT";
88
+ putlog 'ERR' +(-1) "OR: Invalid expression for FORMAT";
89
89
  stop;
90
90
  end;
91
91
  drop &tempcol;
@@ -11,7 +11,7 @@
11
11
  @param [in] file The file to wait for. Must be provided.
12
12
  @param [in] maxwait= (0) Number of seconds to wait. If set to zero, will
13
13
  loop indefinitely (to a maximum of 46 days, per SAS [documentation](
14
- https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm
14
+ https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm
15
15
  )). Otherwise, execution will proceed upon sleep expiry.
16
16
  @param [in] interval= (1) The wait period between sleeps, in seconds
17
17
 
package/base/mp_webin.sas CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  Usage:
20
20
 
21
- %mp_webin()
21
+ %mp_webin()
22
22
 
23
23
  This was created as a macro procedure (over a macro function) as it will also
24
24
  use the filename statement in Viya environments (where `_webin_fileuri` is
package/base/mp_zip.sas CHANGED
@@ -15,14 +15,14 @@
15
15
  <h4> SAS Macros </h4>
16
16
  @li mp_dirlist.sas
17
17
 
18
- @param in= unquoted filepath, dataset of files or directory to zip
19
- @param type= (FILE) Valid values:
18
+ @param [in] in= unquoted filepath, dataset of files or directory to zip
19
+ @param [in] type= (FILE) Valid values:
20
20
  @li FILE - /full/path/and/filename.extension to a particular file
21
21
  @li DATASET - a dataset containing a list of files to zip (see `incol`)
22
22
  @li DIRECTORY - a directory to zip
23
- @param outname= (FILE) Output file to create, _without_ .zip extension
24
- @param outpath= (%sysfunc(pathname(WORK))) Parent folder for output zip file
25
- @param incol= if DATASET input, say which column contains the filepath
23
+ @param [out] outname= (FILE) Output file to create, _without_ .zip extension
24
+ @param [out] outpath= (%sysfunc(pathname(WORK))) Parent folder for zip file
25
+ @param [in] incol= () If DATASET input, say which column contains the filepath
26
26
 
27
27
  <h4> Related Macros </h4>
28
28
  @li mp_unzip.sas
@@ -35,7 +35,18 @@
35
35
  ,NOEDIT num length=3 label='Is picture string noedit?'
36
36
  ,SEXCL char(1) label='Start exclusion'
37
37
  ,EEXCL char(1) label='End exclusion'
38
- ,HLO char(13) label='Additional information. M=MultiLabel'
38
+ ,HLO char(13) label='Additional information.
39
+ F=Standard format/informat.
40
+ H=Range ending value is HIGH.
41
+ I=Numeric informat.
42
+ J=Justification for an informat.
43
+ L=Range starting value is LOW.
44
+ M=MultiLabel.
45
+ N=Format or informat has no ranges, including no OTHER= range.
46
+ O=Range is OTHER.
47
+ R=ROUND option is in effect.
48
+ S=Specifies that NOTSORTED is in effect.
49
+ U=Specifies that the UPCASE option for an informat be used.'
39
50
  ,DECSEP char(1) label='Decimal separator'
40
51
  ,DIG3SEP char(1) label='Three-digit separator'
41
52
  ,DATATYPE char(8) label='Date/time/datetime?'
@@ -13,9 +13,9 @@
13
13
  ,group=someGroup)
14
14
 
15
15
 
16
- @param user= the user name (not displayname)
17
- @param group= the group to which to add the user
18
- @param mdebug= (0) set to 1 to show debug info in log
16
+ @param [in] user= the user name (not displayname)
17
+ @param [in] group= the group to which to add the user
18
+ @param [in] mdebug= (0) set to 1 to show debug info in log
19
19
 
20
20
  <h4> Related Files </h4>
21
21
  @li ms_adduser2group.sas
@@ -18,12 +18,13 @@
18
18
  @li mf_getengine.sas
19
19
  @li mp_abort.sas
20
20
 
21
- @param libref the libref (not name) of the metadata library
22
- @param open_passthrough= provide an alias to produce the CONNECT TO statement
23
- for the relevant external database
24
- @param sql_options= an override default output fileref to avoid naming clash
25
- @param mDebug= set to 1 to show debug messages in the log
26
- @param mAbort= set to 1 to call %mp_abort().
21
+ @param [in] libref the libref (not name) of the metadata library
22
+ @param [in] open_passthrough= () Provide an alias to produce the CONNECT TO
23
+ statement for the relevant external database
24
+ @param [in] sql_options= () Add any options to add to proc sql statement,
25
+ eg outobs= (only valid for pass through)
26
+ @param [in] mDebug= (0) set to 1 to show debug messages in the log
27
+ @param [in] mAbort= (0) set to 1 to call %mp_abort().
27
28
 
28
29
  @returns libname statement
29
30
 
@@ -33,12 +34,9 @@
33
34
  **/
34
35
 
35
36
  %macro mm_assigndirectlib(
36
- libref /* libref to assign from metadata */
37
- ,open_passthrough= /* provide an alias to produce the
38
- CONNECT TO statement for the
39
- relevant external database */
40
- ,sql_options= /* add any options to add to proc sql statement eg outobs=
41
- (only valid for pass through) */
37
+ libref
38
+ ,open_passthrough=
39
+ ,sql_options=
42
40
  ,mDebug=0
43
41
  ,mAbort=0
44
42
  )/*/STORE SOURCE*/;