@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.
- package/.env.server +3 -3
- package/README.md +3 -2
- package/base/mf_abort.sas +5 -0
- package/base/mf_deletefile.sas +1 -1
- package/base/mf_existds.sas +1 -1
- package/base/mf_existfileref.sas +1 -1
- package/base/mf_existfunction.sas +1 -1
- package/base/mf_existvarlist.sas +2 -2
- package/base/mf_getapploc.sas +1 -0
- package/base/mf_getattrc.sas +2 -2
- package/base/mf_getattrn.sas +2 -2
- package/base/mf_getkeyvalue.sas +3 -2
- package/base/mf_getplatform.sas +1 -1
- package/base/mf_getschema.sas +1 -1
- package/base/mf_getuniquelibref.sas +1 -1
- package/base/mf_getuniquename.sas +1 -1
- package/base/mf_getuser.sas +0 -2
- package/base/mf_getvalue.sas +3 -3
- package/base/mf_getvarformat.sas +2 -1
- package/base/mf_getvarlen.sas +2 -2
- package/base/mf_getvarnum.sas +2 -2
- package/base/mf_getvartype.sas +2 -2
- package/base/mf_getxengine.sas +1 -1
- package/base/mf_increment.sas +2 -2
- package/base/mf_isblank.sas +1 -1
- package/base/mf_isdir.sas +1 -1
- package/base/mf_loc.sas +6 -1
- package/base/mf_mkdir.sas +1 -1
- package/base/mf_mval.sas +2 -0
- package/base/mf_nobs.sas +1 -1
- package/base/mf_trimstr.sas +2 -2
- package/base/mf_wordsinstr1andstr2.sas +2 -2
- package/base/mf_wordsinstr1butnotstr2.sas +2 -2
- package/base/mf_writefile.sas +2 -2
- package/base/mp_abort.sas +11 -10
- package/base/mp_aligndecimal.sas +2 -2
- package/base/mp_appendfile.sas +2 -2
- package/base/mp_applyformats.sas +5 -5
- package/base/mp_assertcols.sas +2 -2
- package/base/mp_assertcolvals.sas +1 -1
- package/base/mp_base64copy.sas +2 -2
- package/base/mp_binarycopy.sas +7 -6
- package/base/mp_chop.sas +3 -2
- package/base/mp_cleancsv.sas +5 -4
- package/base/mp_copyfolder.sas +2 -2
- package/base/mp_createconstraints.sas +3 -3
- package/base/mp_createwebservice.sas +1 -1
- package/base/mp_csv2ds.sas +6 -5
- package/base/mp_deleteconstraints.sas +5 -3
- package/base/mp_deletefolder.sas +1 -1
- package/base/mp_dictionary.sas +1 -1
- package/base/mp_distinctfmtvalues.sas +5 -5
- package/base/mp_ds2ddl.sas +14 -2
- package/base/mp_dsmeta.sas +2 -2
- package/base/mp_filtercheck.sas +6 -4
- package/base/mp_filtergenerate.sas +2 -2
- package/base/mp_filterstore.sas +4 -3
- package/base/mp_getcols.sas +3 -2
- package/base/mp_getdbml.sas +4 -4
- package/base/mp_getddl.sas +15 -10
- package/base/mp_gsubfile.sas +6 -6
- package/base/mp_guesspk.sas +1 -1
- package/base/mp_hashdataset.sas +1 -1
- package/base/mp_lib2cards.sas +7 -7
- package/base/mp_md5.sas +2 -2
- package/base/mp_perflog.sas +3 -3
- package/base/mp_prevobs.sas +5 -5
- package/base/mp_recursivejoin.sas +7 -6
- package/base/mp_replace.sas +5 -4
- package/base/mp_runddl.sas +3 -3
- package/base/mp_searchcols.sas +7 -6
- package/base/mp_stprequests.sas +4 -3
- package/base/mp_testjob.sas +2 -2
- package/base/mp_testwritespeedlibrary.sas +3 -3
- package/base/mp_tree.sas +2 -2
- package/base/mp_unzip.sas +5 -4
- package/base/mp_updatevarlength.sas +3 -3
- package/base/mp_validatecol.sas +2 -2
- package/base/mp_wait4file.sas +1 -1
- package/base/mp_webin.sas +1 -1
- package/base/mp_zip.sas +5 -5
- package/ddl/mddl_sas_cntlout.sas +12 -1
- package/meta/mm_adduser2group.sas +3 -3
- package/meta/mm_assigndirectlib.sas +10 -12
- package/meta/mm_assignlib.sas +2 -2
- package/meta/mm_createapplication.sas +13 -10
- package/meta/mm_createdataset.sas +5 -5
- package/meta/mm_createdocument.sas +7 -7
- package/meta/mm_createfolder.sas +5 -5
- package/meta/mm_createlibrary.sas +20 -17
- package/meta/mm_createstp.sas +22 -18
- package/meta/mm_createwebservice.sas +15 -14
- package/meta/mm_deletedocument.sas +1 -1
- package/meta/mm_deletelibrary.sas +1 -1
- package/meta/mm_deletestp.sas +1 -1
- package/meta/mm_getcols.sas +2 -2
- package/meta/mm_getdetails.sas +6 -3
- package/meta/mm_getdirectories.sas +4 -3
- package/meta/mm_getdocument.sas +4 -4
- package/meta/mm_getgroupmembers.sas +5 -5
- package/meta/mm_getlibs.sas +2 -2
- package/meta/mm_getobjects.sas +2 -2
- package/meta/mm_getpublictypes.sas +2 -0
- package/meta/mm_getrepos.sas +2 -1
- package/meta/mm_getroles.sas +2 -1
- package/meta/mm_getservercontexts.sas +2 -1
- package/meta/mm_getstpinfo.sas +1 -1
- package/meta/mm_getstps.sas +8 -7
- package/meta/mm_gettableid.sas +4 -4
- package/meta/mm_gettree.sas +4 -4
- package/meta/mm_gettypes.sas +2 -1
- package/meta/mm_getusers.sas +2 -4
- package/meta/mm_getwebappsrvprops.sas +1 -1
- package/meta/mm_tree.sas +3 -3
- package/meta/mm_updateappextension.sas +8 -8
- package/meta/mm_updatedocument.sas +6 -6
- package/meta/mm_updatestpservertype.sas +2 -2
- package/meta/mm_updatestpsourcecode.sas +6 -4
- package/metax/mmx_createmetafolder.sas +3 -3
- package/metax/mmx_deletemetafolder.sas +3 -3
- package/metax/mmx_spkexport.sas +6 -5
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +4 -2
- package/viya/mfv_existfile.sas +2 -1
- package/viya/mfv_existfolder.sas +1 -1
- package/viya/mfv_existsashdat.sas +4 -4
- package/viya/mv_createjob.sas +16 -14
- package/viya/mv_createwebservice.sas +4 -2
- package/viya/mv_deletefoldermember.sas +8 -6
- package/viya/mv_deletejes.sas +7 -5
- package/viya/mv_getclients.sas +2 -4
- package/viya/mv_getgroupmembers.sas +8 -5
- package/viya/mv_getgroups.sas +6 -4
- package/viya/mv_getjobstate.sas +6 -4
- package/viya/mv_getusergroups.sas +7 -4
- package/viya/mv_getusers.sas +8 -6
- package/viya/mv_registerclient.sas +4 -4
- package/viya/mv_tokenauth.sas +14 -13
- package/viya/mv_tokenrefresh.sas +11 -10
package/meta/mm_assignlib.sas
CHANGED
|
@@ -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
|
|
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=
|
|
28
|
-
|
|
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).
|
|
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).
|
|
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
|
|
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
|
|
package/meta/mm_createfolder.sas
CHANGED
|
@@ -51,12 +51,12 @@ data _null_;
|
|
|
51
51
|
|
|
52
52
|
* name must not be blank;
|
|
53
53
|
if ( folderPath = '' ) then do;
|
|
54
|
-
put
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
28
|
-
are not created (case sensitive).
|
|
29
|
-
@param libref= Library libref (8 chars). Duplicate
|
|
30
|
-
HOWEVER- the check is not case sensitive - if
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@param
|
|
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
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@param
|
|
40
|
-
|
|
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).
|
|
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
|
package/meta/mm_createstp.sas
CHANGED
|
@@ -40,28 +40,32 @@
|
|
|
40
40
|
,Server=SASApp
|
|
41
41
|
,stptype=2)
|
|
42
42
|
|
|
43
|
-
@param stpname= Stored Process name.
|
|
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=
|
|
49
|
-
|
|
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.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
@param
|
|
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
|
|
61
|
-
|
|
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
|
|
64
|
-
|
|
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=
|
|
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
|
|
33
|
-
|
|
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
|
|
38
|
-
needs to be attached to the beginning of the service (optional)
|
|
39
|
-
@param code= (ft15f001) Space seperated fileref(s) of the actual code
|
|
40
|
-
added
|
|
41
|
-
@param server= (SASApp) The server which will run the STP. Server
|
|
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
|
|
45
|
-
location
|
|
46
|
-
@param adapter= (sasjs) the macro uses the sasjs adapter by default.
|
|
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
|
package/meta/mm_deletestp.sas
CHANGED
package/meta/mm_getcols.sas
CHANGED
|
@@ -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
|
package/meta/mm_getdetails.sas
CHANGED
|
@@ -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
|
|
6
|
-
|
|
7
|
-
@param
|
|
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=
|
|
9
|
-
@param outds=
|
|
10
|
-
|
|
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
|
package/meta/mm_getdocument.sas
CHANGED
|
@@ -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.
|
|
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)
|
|
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
|
|
package/meta/mm_getlibs.sas
CHANGED
|
@@ -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
|
|
8
|
-
|
|
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:
|
package/meta/mm_getobjects.sas
CHANGED
|
@@ -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
|
|
package/meta/mm_getrepos.sas
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
@file
|
|
3
3
|
@brief Creates a dataset with all available repositories
|
|
4
4
|
|
|
5
|
-
@param outds=
|
|
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
|
|
package/meta/mm_getroles.sas
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
%mm_getroles()
|
|
9
9
|
|
|
10
|
-
@param [out] outds
|
|
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=
|
|
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
|
|
package/meta/mm_getstpinfo.sas
CHANGED
package/meta/mm_getstps.sas
CHANGED
|
@@ -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.
|
|
21
|
-
|
|
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=
|
|
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
|
package/meta/mm_gettableid.sas
CHANGED
|
@@ -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
|
|
package/meta/mm_gettree.sas
CHANGED
|
@@ -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
|
package/meta/mm_gettypes.sas
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
%mm_gettypes(outds=types)
|
|
7
7
|
|
|
8
|
-
@param outds
|
|
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
|
|
package/meta/mm_getusers.sas
CHANGED
|
@@ -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
|
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
|