@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
@@ -14,8 +14,8 @@
14
14
  @li mp_abort.sas
15
15
 
16
16
  @param [in] libref The libref (not name) of the metadata library
17
- @param [in] mAbort= If not assigned, HARD will call %mp_abort(), SOFT will
18
- silently return
17
+ @param [in] mAbort= (HARD) If not assigned, HARD will call %mp_abort(), SOFT
18
+ will silently return
19
19
 
20
20
  @returns libname statement
21
21
 
@@ -21,21 +21,24 @@
21
21
  @li mp_abort.sas
22
22
  @li mf_verifymacvars.sas
23
23
 
24
- @param tree= The metadata folder uri, or the metadata path, in which to
24
+ @param [in] tree= The metadata folder uri, or the metadata path, in which to
25
25
  create the object. This must exist.
26
- @param name= Application object name. Avoid spaces.
27
- @param ClassIdentifier= the class of applications to which this app belongs
28
- @param params= name=value pairs which will become public properties of the
26
+ @param [in] name= Application object name. Avoid spaces.
27
+ @param [in] ClassIdentifier=
28
+ The class of applications to which this app belongs
29
+ @param [in] params=
30
+ name=value pairs which will become public properties of the
29
31
  application object. These are delimited using 
 (newline character)
30
32
 
31
- @param desc= Application description (optional). Avoid ampersands as these
33
+ @param [in] desc= Application description (optional).
34
+ Avoid ampersands as these
32
35
  are illegal characters (unless they are escapted- eg &)
33
- @param version= version number of application
34
- @param frefin= fileref to use (enables change if there is a conflict). The
35
- filerefs are left open, to enable inspection after running the
36
+ @param [in] version= version number of application
37
+ @param [in] frefin= fileref to use (enables change if there is a conflict).
38
+ The filerefs are left open, to enable inspection after running the
36
39
  macro (or importing into an xmlmap if needed).
37
- @param frefout= fileref to use (enables change if there is a conflict)
38
- @param mDebug= set to 1 to show debug messages in the log
40
+ @param [out] frefout= fileref to use (enables change if there is a conflict)
41
+ @param [in] mDebug= set to 1 to show debug messages in the log
39
42
 
40
43
  @author Allan Bowe
41
44
 
@@ -22,12 +22,12 @@
22
22
  @li mm_gettables.sas
23
23
  @li mm_getcols.sas
24
24
 
25
- @param libds= library.dataset metadata source. Note - table names in metadata
25
+ @param [in] libds= library.dataset metadata source. Note - table names in metadata
26
26
  can be longer than 32 chars (just fyi, not an issue here)
27
- @param tableuri= Metadata URI of the table to be created
28
- @param outds= (work.mm_createdataset) The dataset to create. The table name
29
- needs to be 32 chars or less as per SAS naming rules.
30
- @param mdebug= (0) Set to 1 to enable DEBUG messages
27
+ @param [in] tableuri= Metadata URI of the table to be created
28
+ @param [out] outds= (work.mm_createdataset) The dataset to create. The table
29
+ name needs to be 32 chars or less as per SAS naming rules.
30
+ @param [in] mdebug= (0) Set to 1 to enable DEBUG messages
31
31
 
32
32
  @version 9.4
33
33
  @author Allan Bowe
@@ -17,15 +17,15 @@
17
17
  @li mf_verifymacvars.sas
18
18
 
19
19
 
20
- @param tree= The metadata folder uri, or the metadata path, in which to
20
+ @param [in] tree= The metadata folder uri, or the metadata path, in which to
21
21
  create the document. This must exist.
22
- @param name= Document object name. Avoid spaces.
22
+ @param [in] name= Document object name. Avoid spaces.
23
23
 
24
- @param desc= Document description (optional)
25
- @param textrole= TextRole property (optional)
26
- @param frefin= fileref to use (enables change if there is a conflict)
27
- @param frefout= fileref to use (enables change if there is a conflict)
28
- @param mDebug= set to 1 to show debug messages in the log
24
+ @param [in] desc= Document description (optional)
25
+ @param [in] textrole= TextRole property (optional)
26
+ @param [in] frefin= fileref to use (enables change if there is a conflict)
27
+ @param [out] frefout= fileref to use (enables change if there is a conflict)
28
+ @param [in] mDebug= set to 1 to show debug messages in the log
29
29
 
30
30
  @author Allan Bowe
31
31
 
@@ -51,12 +51,12 @@ data _null_;
51
51
 
52
52
  * name must not be blank;
53
53
  if ( folderPath = '' ) then do;
54
- put "%str(ERR)OR: &sysmacroname PATH parameter value must be non-blank";
54
+ put 'ERR' +(-1) "OR: &sysmacroname PATH parameter value must be non-blank";
55
55
  end;
56
56
 
57
57
  * must have a starting slash ;
58
58
  if ( substr(folderPath,1,1) ne '/' ) then do;
59
- put "%str(ERR)OR: &sysmacroname PATH param value must have starting slash";
59
+ put 'ERR' +(-1) "OR: &sysmacroname PATH param value must have starting slash";
60
60
  stop;
61
61
  end;
62
62
 
@@ -69,14 +69,14 @@ data _null_;
69
69
 
70
70
  * do not create a root (one level) folder ;
71
71
  if countc(folderPath,'/')=1 then do;
72
- put "%str(ERR)OR: &sysmacroname will not create a new ROOT folder";
72
+ put 'ERR' +(-1) "OR: &sysmacroname will not create a new ROOT folder";
73
73
  stop;
74
74
  end;
75
75
 
76
76
  * check that root folder exists ;
77
77
  root=cats('/',scan(folderpath,1,'/'),"(Folder)");
78
78
  if metadata_pathobj('',root,"",objType,parentId)<1 then do;
79
- put "%str(ERR)OR: " root " does not exist!";
79
+ put 'ERR' +(-1) "OR: " root " does not exist!";
80
80
  stop;
81
81
  end;
82
82
 
@@ -141,7 +141,7 @@ run;
141
141
  putlog "SUCCCESS! &path created.";
142
142
  end;
143
143
  else do;
144
- putlog "%str(ERR)OR: unsuccessful attempt to create &path";
144
+ putlog 'ERR' +(-1) "OR: unsuccessful attempt to create &path";
145
145
  call symputx('syscc',8);
146
146
  end;
147
147
  run;
@@ -24,30 +24,33 @@
24
24
  @li mm_createfolder.sas
25
25
 
26
26
 
27
- @param libname= Library name (as displayed to user, 256 chars). Duplicates
28
- are not created (case sensitive).
29
- @param libref= Library libref (8 chars). Duplicate librefs are not created,
30
- HOWEVER- the check is not case sensitive - if *libref* exists, *LIBREF*
31
- will still be created. Librefs created will always be uppercased.
32
- @param engine= Library engine (currently only BASE supported)
33
- @param tree= The metadata folder uri, or the metadata path, in which to
27
+ @param [in] libname= (My New Library) Library name (as displayed to user,
28
+ 256 chars). Duplicates are not created (case sensitive).
29
+ @param [in] libref= (mynewlib) Library libref (8 chars). Duplicate
30
+ librefs are not created, HOWEVER- the check is not case sensitive - if
31
+ *libref* exists, *LIBREF* will still be created.
32
+ Librefs created will always be uppercased.
33
+ @param [in] engine= Library engine (currently only BASE supported)
34
+ @param [in] tree= The metadata folder uri, or the metadata path, in which to
34
35
  create the library.
35
- @param servercontext= The SAS server against which the library is registered.
36
- @param IsPreassigned= set to 1 if the library should be pre-assigned.
37
-
38
- @param libdesc= Library description (optional)
39
- @param directory= Required for the BASE engine. The metadata directory objects
40
- are searched to find an existing one with a matching physical path.
36
+ @param [in] servercontext= (SASApp) The SAS server against which
37
+ the library is registered.
38
+ @param [in] IsPreassigned= set to 1 if the library should be pre-assigned.
39
+
40
+ @param [in] libdesc= Library description (optional)
41
+ @param [in] directory= (/tmp/somelib) Required for the BASE engine.
42
+ The metadata directory objects are searched to find an existing
43
+ one with a matching physical path.
41
44
  If more than one uri found with that path, then the first one will be used.
42
45
  If no URI is found, a new directory object will be created. The physical
43
46
  path will also be created, if it doesn't exist.
44
47
 
45
48
 
46
- @param mDebug= set to 1 to show debug messages in the log
47
- @param frefin= fileref to use (enables change if there is a conflict). The
48
- filerefs are left open, to enable inspection after running the
49
+ @param [in] mDebug= set to 1 to show debug messages in the log
50
+ @param [in] frefin= fileref to use (enables change if there is a conflict).
51
+ The filerefs are left open, to enable inspection after running the
49
52
  macro (or importing into an xmlmap if needed).
50
- @param frefout= fileref to use (enables change if there is a conflict)
53
+ @param [out] frefout= fileref to use (enables change if there is a conflict)
51
54
 
52
55
 
53
56
  @version 9.3
@@ -40,28 +40,32 @@
40
40
  ,Server=SASApp
41
41
  ,stptype=2)
42
42
 
43
- @param stpname= Stored Process name. Avoid spaces - testing has shown that
43
+ @param [in] stpname= (SASjs Default STP) Stored Process name.
44
+ Avoid spaces - testing has shown that
44
45
  the check to avoid creating multiple STPs in the same folder with the same
45
46
  name does not work when the name contains spaces.
46
- @param stpdesc= Stored Process description (optional)
47
- @param filename= the name of the .sas program to run
48
- @param directory= The directory uri, or the actual path to the sas program
49
- (no trailing slash). If more than uri is found with that path, then the
50
- first one will be used.
51
- @param tree= The metadata folder uri, or the metadata path, in which to
47
+ @param [in] stpdesc= Stored Process description (optional)
48
+ @param [in] filename= the name of the .sas program to run
49
+ @param [in] directory= (SASEnvironment/sascode)
50
+ The directory uri or the actual path to the sas program (no trailing slash).
51
+ If more than uri is found with that path, then the first one will be used.
52
+ @param [in] tree= The metadata folder uri, or the metadata path, in which to
52
53
  create the STP.
53
- @param server= The server which will run the STP. Server name or uri is fine.
54
- @param outds= The two level name of the output dataset. Will contain all the
55
- meta uris. Defaults to work.mm_createstp.
56
- @param mDebug= set to 1 to show debug messages in the log
57
- @param stptype= Default is 1 (STP code saved on filesystem). Set to 2 if
54
+ @param [in] server= (SASApp) The server which will run the STP.
55
+ Server name or uri is fine.
56
+ @param [out] outds= (work.mm_createstp)
57
+ The two level name of the output dataset. Will contain all the meta uris.
58
+ @param [in] mDebug= set to 1 to show debug messages in the log
59
+ @param [in] stptype= Default is 1 (STP code saved on filesystem). Set to 2 if
58
60
  source code is to be saved in metadata (9.3 and above feature).
59
- @param minify= set to YES to strip comments / blank lines etc
60
- @param frefin= fileref to use (enables change if there is a conflict). The
61
- filerefs are left open, to enable inspection after running the
61
+ @param [in] minify= set to YES to strip comments / blank lines etc
62
+ @param [in] frefin= (mm_in) fileref to use (enables change if there is
63
+ a conflict).
64
+ The filerefs are left open, to enable inspection after running the
62
65
  macro (or importing into an xmlmap if needed).
63
- @param frefout= fileref to use (enables change if there is a conflict)
64
- @param repo= ServerContext is tied to a repo, if you are not using the
66
+ @param [out] frefout= (mm_out) fileref to use (enables change if there is
67
+ a conflict)
68
+ @param [in] repo= ServerContext is tied to a repo, if you are not using the
65
69
  foundation repo then select a different one here
66
70
 
67
71
  @returns outds dataset containing the following columns:
@@ -88,7 +92,7 @@
88
92
  **/
89
93
 
90
94
  %macro mm_createstp(
91
- stpname=Macro People STP
95
+ stpname=SASjs Default STP
92
96
  ,stpdesc=This stp was created automatically by the mm_createstp macro
93
97
  ,filename=mm_createstp.sas
94
98
  ,directory=SASEnvironment/SASCode
@@ -29,22 +29,23 @@ Usage:
29
29
  For more examples of using these web services with the SASjs Adapter, see:
30
30
  https://github.com/sasjs/adapter#readme
31
31
 
32
- @param path= The full path (in SAS Metadata) where the service will be created
33
- @param name= Stored Process name. Avoid spaces - testing has shown that
32
+ @param [in] path= () The full path (in SAS Metadata) where the service
33
+ will be created
34
+ @param [in] name= Stored Process name. Avoid spaces - testing has shown that
34
35
  the check to avoid creating multiple STPs in the same folder with the same
35
36
  name does not work when the name contains spaces.
36
- @param desc= The description of the service (optional)
37
- @param precode= Space separated list of filerefs, pointing to the code that
38
- needs to be attached to the beginning of the service (optional)
39
- @param code= (ft15f001) Space seperated fileref(s) of the actual code to be
40
- added
41
- @param server= (SASApp) The server which will run the STP. Server name or uri
42
- is fine.
43
- @param mDebug= (0) set to 1 to show debug messages in the log
44
- @param replace= (YES) select NO to avoid replacing an existing service in that
45
- location
46
- @param adapter= (sasjs) the macro uses the sasjs adapter by default. To use
47
- another adapter, add a (different) fileref here.
37
+ @param [in] desc= The description of the service (optional)
38
+ @param [in] precode= () Space separated list of filerefs, pointing to the
39
+ code that needs to be attached to the beginning of the service (optional)
40
+ @param [in] code= (ft15f001) Space seperated fileref(s) of the actual code
41
+ to be added
42
+ @param [in] server= (SASApp) The server which will run the STP. Server
43
+ name or uri is fine.
44
+ @param [in] mDebug= (0) set to 1 to show debug messages in the log
45
+ @param [in] replace= (YES) select NO to avoid replacing an existing service
46
+ in that location
47
+ @param [in] adapter= (sasjs) the macro uses the sasjs adapter by default.
48
+ To use another adapter, add a (different) fileref here.
48
49
 
49
50
  <h4> SAS Macros </h4>
50
51
  @li mm_createstp.sas
@@ -10,7 +10,7 @@
10
10
 
11
11
  <h4> SAS Macros </h4>
12
12
 
13
- @param target= full path to the document being deleted
13
+ @param [in] target= full path to the document being deleted
14
14
 
15
15
  @version 9.4
16
16
  @author Allan Bowe
@@ -20,7 +20,7 @@
20
20
 
21
21
  ![](https://i.imgur.com/Y4Tog24.png)
22
22
 
23
- @param [in] name= the name (not libref) of the library to be deleted
23
+ @param [in] name= () the name (not libref) of the library to be deleted
24
24
 
25
25
  <h4> SAS Macros </h4>
26
26
  @li mf_getuniquefileref.sas
@@ -9,7 +9,7 @@
9
9
 
10
10
  <h4> SAS Macros </h4>
11
11
 
12
- @param target= full path to the STP being deleted
12
+ @param [in] target= full path to the STP being deleted
13
13
 
14
14
  @version 9.4
15
15
  @author Allan Bowe
@@ -7,8 +7,8 @@
7
7
 
8
8
  %mm_getcols(tableuri=A5X8AHW1.B40001S5)
9
9
 
10
- @param outds the dataset to create that contains the list of columns
11
- @param uri the uri of the table for which to return columns
10
+ @param [out] outds the dataset to create that contains the list of columns
11
+ @param [in] uri the uri of the table for which to return columns
12
12
 
13
13
  @returns outds dataset containing all columns, specifically:
14
14
  - colname
@@ -2,9 +2,12 @@
2
2
  @file mm_getdetails.sas
3
3
  @brief extracts metadata attributes and associations for a particular uri
4
4
 
5
- @param uri the metadata object for which to return attributes / associations
6
- @param outattrs= the dataset to create that contains the list of attributes
7
- @param outassocs= the dataset to contain the list of associations
5
+ @param [in] uri the metadata object for which to return
6
+ attributes / associations
7
+ @param [out] outattrs= (work.attributes)
8
+ The dataset to create that contains the list of attributes
9
+ @param [out] outassocs= (work.associations)
10
+ The dataset to contain the list of associations
8
11
 
9
12
  @version 9.2
10
13
  @author Allan Bowe
@@ -5,9 +5,10 @@
5
5
  blank to return all directories. The Directory object is used to reference
6
6
  a physical filepath (eg when registering a .sas program in a Stored process)
7
7
 
8
- @param path= the physical path for which to return a meta Directory object
9
- @param outds= the dataset to create that contains the list of directories
10
- @param mDebug= set to 1 to show debug messages in the log
8
+ @param [in] path= Physical path for which to return a meta Directory object
9
+ @param [out] outds= (work.mm_getdirectories)
10
+ the dataset to create that contains the list of directories
11
+ @param [in] mDebug= (0) set to 1 to show debug messages in the log
11
12
 
12
13
  @returns outds dataset containing the following columns:
13
14
  - directoryuri
@@ -14,10 +14,10 @@
14
14
  <h4> SAS Macros </h4>
15
15
  @li mp_abort.sas
16
16
 
17
- @param tree= The metadata path of the document
18
- @param name= Document object name.
19
- @param outref= full and unquoted path to the desired text file. This will be
20
- overwritten if it already exists.
17
+ @param [in] tree= The metadata path of the document
18
+ @param [in] name= Document object name.
19
+ @param [out] outref= full and unquoted path to the desired text file.
20
+ This will be overwritten if it already exists.
21
21
 
22
22
  @author Allan Bowe
23
23
 
@@ -11,11 +11,11 @@
11
11
  ,emails=YES
12
12
  )
13
13
 
14
- @param group metadata group for which to bring back members
15
- @param outds= (work.mm_getgroupmembers) The dataset to create that contains
16
- the list of members
17
- @param emails= (NO) Set to YES to bring back email addresses
18
- @param id= (NO) Set to yes if passing an ID rather than a group name
14
+ @param [in] group metadata group for which to bring back members
15
+ @param [out] outds= (work.mm_getgroupmembers)
16
+ The dataset to create that contains the list of members
17
+ @param [in] emails= (NO) Set to YES to bring back email addresses
18
+ @param [in] id= (NO) Set to yes if passing an ID rather than a group name
19
19
 
20
20
  @returns outds dataset containing all members of the metadata group
21
21
 
@@ -4,8 +4,8 @@
4
4
  @details Will only show the libraries to which a user has the requisite
5
5
  metadata access.
6
6
 
7
- @param outds the dataset to create that contains the list of libraries
8
- @param mDebug set to anything but * or 0 to show debug messages in the log
7
+ @param [out] outds= (work.mm_getlibs)
8
+ The library.dataset to create that contains the list of libraries
9
9
 
10
10
  @returns outds dataset containing all groups in a column named "metagroup"
11
11
  (defaults to work.mm_getlibs). The following columns are provided:
@@ -2,8 +2,8 @@
2
2
  @file
3
3
  @brief Creates a dataset with all metadata objects for a particular type
4
4
 
5
- @param type= the metadata type for which to return all objects
6
- @param outds= the dataset to create that contains the list of types
5
+ @param [in] type= the metadata type for which to return all objects
6
+ @param [out] outds= the dataset to create that contains the list of types
7
7
 
8
8
  @returns outds dataset containing all objects
9
9
 
@@ -9,6 +9,8 @@
9
9
  * dataset will contain one column - publictype ($64);
10
10
  %mm_getpublictypes(outds=types)
11
11
 
12
+ @param [out] outds= (work.mm_getpublictypes) The library.dataset to create
13
+
12
14
  @returns outds= dataset containing all types
13
15
 
14
16
  @version 9.3
@@ -2,7 +2,8 @@
2
2
  @file
3
3
  @brief Creates a dataset with all available repositories
4
4
 
5
- @param outds= the dataset to create that contains the list of repos
5
+ @param [out] outds= (work.mm_getrepos)
6
+ The dataset to create that contains the list of repos
6
7
 
7
8
  @returns outds dataset containing all repositories
8
9
 
@@ -7,7 +7,8 @@
7
7
 
8
8
  %mm_getroles()
9
9
 
10
- @param [out] outds the dataset to create that contains the list of roles
10
+ @param [out] outds= (work.mm_getroles)
11
+ The dataset to create that contains the list of roles
11
12
 
12
13
  @returns outds dataset containing all roles, with the following columns:
13
14
  - uri
@@ -6,7 +6,8 @@
6
6
 
7
7
  %mm_getservercontexts(outds=mm_getservercontexts)
8
8
 
9
- @param outds= the dataset to create that contains the list
9
+ @param [out] outds= (work.mm_getrepos)
10
+ the dataset to create that contains the list
10
11
 
11
12
  @warning The following filenames are created and then de-assigned:
12
13
 
@@ -58,7 +58,7 @@ data &outds;
58
58
  rc5=metadata_getattr(tsuri,"Name",servercontext);
59
59
  end;
60
60
  else do;
61
- put "%str(ERR)OR: could not find " path;
61
+ put 'ERR' +(-1) "OR: could not find " path;
62
62
  put (_all_)(=);
63
63
  end;
64
64
  &md.put (_all_)(=);
@@ -17,15 +17,16 @@
17
17
  <h4> SAS Macros </h4>
18
18
  @li mm_gettree.sas
19
19
 
20
- @param tree= the metadata folder location in which to search. Leave blank
21
- for all folders. Does not search subdirectories.
22
- @param name= Provide the name of an STP to search for just that one. Can
20
+ @param [in] tree= () the metadata folder location in which to search.
21
+ Leave blank for all folders. Does not search subdirectories.
22
+ @param [in] name= Provide the name of an STP to search for just that one. Can
23
23
  combine with the <code>tree=</code> parameter.
24
- @param outds= the dataset to create that contains the list of stps.
25
- @param mDebug= set to 1 to show debug messages in the log
26
- @param showDesc= provide a non blank value to return stored process
24
+ @param [out] outds= the dataset to create that contains the list of stps.
25
+ @param [in] mDebug= set to 1 to show debug messages in the log
26
+ @param [in] showDesc= provide a non blank value to return stored process
27
27
  descriptions
28
- @param showUsageVersion= provide a non blank value to return the UsageVersion.
28
+ @param [in] showUsageVersion= ()
29
+ Provide a non blank value to return the UsageVersion.
29
30
  This is either 1000000 (type 1, 9.2) or 2000000 (type2, 9.3 onwards).
30
31
 
31
32
  @returns outds dataset containing the following columns
@@ -9,10 +9,10 @@
9
9
  - get a table id
10
10
  %mm_gettableid(libref=METALIB,ds=SOMETABLE,outds=iwant)
11
11
 
12
- @param libref= The libref to search
13
- @param ds= The input dataset to check
14
- @param outds= the dataset to create that contains the `tableuri`
15
- @param mDebug= set to 1 to show debug messages in the log
12
+ @param [in] libref= The libref to search
13
+ @param [in] ds= The input dataset to check
14
+ @param [out] outds= the dataset to create that contains the `tableuri`
15
+ @param [in] mDebug= set to 1 to show debug messages in the log
16
16
 
17
17
  @returns outds dataset containing `tableuri` and `tablename`
18
18
 
@@ -10,10 +10,10 @@
10
10
  %mm_getTree(tree=/User Folders/sasdemo)
11
11
 
12
12
 
13
- @param tree= the BIP Tree folder path or uri
14
- @param outds= the dataset to create that contains the tree path & uri
15
- @param inds= an optional input dataset to augment with treepath & treeuri
16
- @param mDebug= set to 1 to show debug messages in the log
13
+ @param [in] tree= the BIP Tree folder path or uri
14
+ @param [out] outds= the dataset to create that contains the tree path & uri
15
+ @param [in] inds= an optional input dataset to augment with treepath & treeuri
16
+ @param [in] mDebug= set to 1 to show debug messages in the log
17
17
 
18
18
  @returns outds dataset containing the following columns:
19
19
  - treeuri
@@ -5,7 +5,8 @@
5
5
 
6
6
  %mm_gettypes(outds=types)
7
7
 
8
- @param outds the dataset to create that contains the list of types
8
+ @param [in] outds= (work.mm_gettypes)
9
+ The dataset to create that contains the list of types
9
10
  @returns outds dataset containing all types
10
11
  @warning The following filenames are created and then de-assigned:
11
12
 
@@ -12,14 +12,12 @@
12
12
 
13
13
  %mm_getusers(user=&_metaperson)
14
14
 
15
- @param outds the dataset to create that contains the list of libraries
16
-
17
15
  @returns outds dataset containing all users, with the following columns:
18
16
  - uri
19
17
  - name
20
18
 
21
- @param user= (0) Set to a metadata user to filter on that user
22
- @param outds= (work.mm_getusers) The output table to create
19
+ @param [in] user= (0) Set to a metadata user to filter on that user
20
+ @param [out] outds= (work.mm_getusers) The output table to create
23
21
 
24
22
  @version 9.3
25
23
  @author Allan Bowe
@@ -10,7 +10,7 @@
10
10
  put value=;
11
11
  run;
12
12
 
13
- @param outds the dataset to create that contains the list of properties
13
+ @param [out] outds= the dataset to create that contains the list of properties
14
14
 
15
15
  @returns outds dataset containing all properties
16
16
 
package/meta/mm_tree.sas CHANGED
@@ -52,9 +52,9 @@
52
52
  @li mm_getpublictypes.sas
53
53
  @li mf_isblank.sas
54
54
 
55
- @param root= the parent folder under which to return all contents
56
- @param outds= the dataset to create that contains the list of directories
57
- @param types= Space-seperated, unquoted list of types for filtering the
55
+ @param [in] root= the parent folder under which to return all contents
56
+ @param [in] outds= the dataset to create that contains the list of directories
57
+ @param [in] types= Space-seperated, unquoted list of types for filtering the
58
58
  output. Special types:
59
59
 
60
60
  * ALl - return all types (the default)
@@ -17,14 +17,14 @@
17
17
  ,paramdesc=some description)
18
18
 
19
19
 
20
- @param app= the BIP Tree folder path plus Application Name
21
- @param paramname= Parameter name
22
- @param paramvalue= Parameter value
23
- @param paramdesc= Parameter description
24
-
25
- @param frefin= change default inref if it clashes with an existing one
26
- @param frefout= change default outref if it clashes with an existing one
27
- @param mDebug= set to 1 to show debug messages in the log
20
+ @param [in] app= the BIP Tree folder path plus Application Name
21
+ @param [in] paramname= Parameter name
22
+ @param [in] paramvalue= Parameter value
23
+ @param [in] paramdesc= Parameter description
24
+
25
+ @param [in] frefin= change default inref if it clashes with an existing one
26
+ @param [out] frefout= change default outref if it clashes with an existing one
27
+ @param [in] mDebug= set to 1 to show debug messages in the log
28
28
 
29
29
  @version 9.4
30
30
  @author Allan Bowe
@@ -10,13 +10,13 @@
10
10
  ,text="/file/system/some.txt")
11
11
 
12
12
 
13
- @param path= the BIP Tree folder path
14
- @param name=Document Name
15
- @param text=a source file containing the text to be added
13
+ @param [in] path= the BIP Tree folder path
14
+ @param [in] name=Document Name
15
+ @param [in] text=a source file containing the text to be added
16
16
 
17
- @param frefin= change default inref if it clashes with an existing one
18
- @param frefout= change default outref if it clashes with an existing one
19
- @param mDebug= set to 1 to show debug messages in the log
17
+ @param [in] frefin= change default inref if it clashes with an existing one
18
+ @param [out] frefout= change default outref if it clashes with an existing one
19
+ @param [in] mDebug= set to 1 to show debug messages in the log
20
20
 
21
21
  @version 9.3
22
22
  @author Allan Bowe