@sasjs/core 4.46.6 → 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/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_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 +1 -1
- 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_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_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_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/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_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/README.md
CHANGED
|
@@ -235,13 +235,14 @@ If you find this library useful, please leave a [star](https://github.com/sasjs/
|
|
|
235
235
|
|
|
236
236
|
The following repositories are also worth checking out:
|
|
237
237
|
|
|
238
|
-
* [xieliaing/SAS](https://github.com/xieliaing/SAS)
|
|
239
|
-
* [SASJedi/sas-macros](https://github.com/SASJedi/sas-macros)
|
|
240
238
|
* [chris-swenson/sasmacros](https://github.com/chris-swenson/sasmacros)
|
|
241
239
|
* [greg-wotton/sas-programs](https://github.com/greg-wootton/sas-programs)
|
|
242
240
|
* [KatjaGlassConsulting/SMILE-SmartSASMacros](https://github.com/KatjaGlassConsulting/SMILE-SmartSASMacros)
|
|
241
|
+
* [paul-canals/toolbox](https://github.com/paul-canals/toolbox)
|
|
243
242
|
* [rogerjdeangelis](https://github.com/rogerjdeangelis)
|
|
243
|
+
* [SASJedi/sas-macros](https://github.com/SASJedi/sas-macros)
|
|
244
244
|
* [scottbass/sas](https://github.com/scottbass/SAS)
|
|
245
|
+
* [xieliaing/SAS](https://github.com/xieliaing/SAS)
|
|
245
246
|
* [yabwon/sas_packages](https://github.com/yabwon/SAS_PACKAGES)
|
|
246
247
|
|
|
247
248
|
## Contributors ✨
|
package/base/mf_abort.sas
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
@brief Abort, ungracefully
|
|
4
4
|
@details Will abort with a straightforward %abort if the condition is true.
|
|
5
5
|
|
|
6
|
+
@param [in] mac= (mf_abort.sas) Name of calling macro (is printed to the log)
|
|
7
|
+
@param [in] msg= ( ) Additional string to print to the log
|
|
8
|
+
@param [in] iftrue= (%str(1=1)) Conditional logic under which to perform the
|
|
9
|
+
abort
|
|
10
|
+
|
|
6
11
|
<h4> Related Macros </h4>
|
|
7
12
|
@li mp_abort.sas
|
|
8
13
|
|
package/base/mf_deletefile.sas
CHANGED
package/base/mf_existds.sas
CHANGED
package/base/mf_existfileref.sas
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@details You can probably do without this macro as it is just a one liner.
|
|
5
5
|
Mainly it is here as a convenient way to remember the syntax!
|
|
6
6
|
|
|
7
|
-
@param fref the fileref to detect
|
|
7
|
+
@param [in] fref the fileref to detect
|
|
8
8
|
|
|
9
9
|
@return output Returns 1 if found and 0 if not found. Note - it is possible
|
|
10
10
|
that the fileref is found, but the file does not (yet) exist. If you need
|
package/base/mf_existvarlist.sas
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
%put %mf_existVarList(sashelp.class, age sex name dummyvar);
|
|
8
8
|
|
|
9
|
-
@param libds 2 part dataset or view reference
|
|
10
|
-
@param varlist space separated variable names
|
|
9
|
+
@param [in] libds 2 part dataset or view reference
|
|
10
|
+
@param [in] varlist space separated variable names
|
|
11
11
|
|
|
12
12
|
@version 9.2
|
|
13
13
|
@author Allan Bowe
|
package/base/mf_getapploc.sas
CHANGED
package/base/mf_getattrc.sas
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
%put Dataset label = %mf_getattrc(sashelp.class,LABEL);
|
|
7
7
|
%put Member Type = %mf_getattrc(sashelp.class,MTYPE);
|
|
8
8
|
|
|
9
|
-
@param libds library.dataset
|
|
10
|
-
@param attr full list in [documentation](
|
|
9
|
+
@param [in] libds library.dataset
|
|
10
|
+
@param [in] attr full list in [documentation](
|
|
11
11
|
https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000147794.htm)
|
|
12
12
|
@return output returns result of the attrc value supplied, or -1 and log
|
|
13
13
|
message if err.
|
package/base/mf_getattrn.sas
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
%put Number of observations=%mf_getattrn(sashelp.class,NLOBS);
|
|
7
7
|
%put Number of variables = %mf_getattrn(sashelp.class,NVARS);
|
|
8
8
|
|
|
9
|
-
@param libds library.dataset
|
|
10
|
-
@param attr Common values are NLOBS and NVARS, full list in [documentation](
|
|
9
|
+
@param [in] libds library.dataset
|
|
10
|
+
@param [in] attr Common values are NLOBS and NVARS, full list in [documentation](
|
|
11
11
|
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm)
|
|
12
12
|
@return output returns result of the attrn value supplied, or -1 and log
|
|
13
13
|
message if err.
|
package/base/mf_getkeyvalue.sas
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
%put %mf_getkeyvalue(someindex)
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
@param key Provide a key on which to perform the lookup
|
|
11
|
-
@param libds=
|
|
10
|
+
@param [in] key Provide a key on which to perform the lookup
|
|
11
|
+
@param [in] libds= (work.mp_setkeyvalue) The library.dataset which holds the
|
|
12
|
+
parameters
|
|
12
13
|
|
|
13
14
|
@version 9.2
|
|
14
15
|
@author Allan Bowe
|
package/base/mf_getplatform.sas
CHANGED
package/base/mf_getschema.sas
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@param [in] prefix= (mclib) first part of the returned libref. As librefs can
|
|
20
20
|
be as long as 8 characters, a maximum length of 7 characters is premitted
|
|
21
21
|
for this prefix.
|
|
22
|
-
@param [in] maxtries= Deprecated parameter. Remains here to ensure a
|
|
22
|
+
@param [in] maxtries= (1000) Deprecated parameter. Remains here to ensure a
|
|
23
23
|
non-breaking change. Will be removed in v5.
|
|
24
24
|
|
|
25
25
|
@version 9.2
|
package/base/mf_getuser.sas
CHANGED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
%let user= %mf_getUser();
|
|
14
14
|
%put &user;
|
|
15
15
|
|
|
16
|
-
@param type - do not use, may be deprecated in a future release
|
|
17
|
-
|
|
18
16
|
@return SYSUSERID (if workspace server)
|
|
19
17
|
@return _METAPERSON (if stored process server)
|
|
20
18
|
@return SYS_COMPUTE_SESSION_OWNER (if Viya compute session)
|
package/base/mf_getvalue.sas
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
<h4> Related Macros </h4>
|
|
14
14
|
@li mp_setkeyvalue.sas
|
|
15
15
|
|
|
16
|
-
@param libds dataset to query
|
|
17
|
-
@param variable the variable which contains the value to return.
|
|
18
|
-
@param filter contents of where clause
|
|
16
|
+
@param [in] libds dataset to query
|
|
17
|
+
@param [in] variable the variable which contains the value to return.
|
|
18
|
+
@param [in] filter= (1) contents of where clause
|
|
19
19
|
|
|
20
20
|
@version 9.2
|
|
21
21
|
@author Allan Bowe
|
package/base/mf_getvarformat.sas
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
@param [in] libds Two part dataset (or view) reference.
|
|
27
27
|
@param [in] var Variable name for which a format should be returned
|
|
28
|
-
@param [in] force=(0) Set to 1 to supply a default if the variable has no
|
|
28
|
+
@param [in] force= (0) Set to 1 to supply a default if the variable has no
|
|
29
|
+
format
|
|
29
30
|
@returns outputs format
|
|
30
31
|
|
|
31
32
|
@author Allan Bowe
|
package/base/mf_getvarlen.sas
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
8
|
|
19
19
|
NOTE: Variable renegade does not exist in test
|
|
20
20
|
|
|
21
|
-
@param libds Two part dataset (or view) reference.
|
|
22
|
-
@param var Variable name for which a length should be returned
|
|
21
|
+
@param [in] libds Two part dataset (or view) reference.
|
|
22
|
+
@param [in] var Variable name for which a length should be returned
|
|
23
23
|
@returns outputs length
|
|
24
24
|
|
|
25
25
|
@author Allan Bowe
|
package/base/mf_getvarnum.sas
CHANGED
|
@@ -21,8 +21,8 @@ returns:
|
|
|
21
21
|
|
|
22
22
|
> NOTE: Variable renegade does not exist in test
|
|
23
23
|
|
|
24
|
-
@param libds Two part dataset (or view) reference.
|
|
25
|
-
@param var Variable name for which a position should be returned
|
|
24
|
+
@param [in] libds Two part dataset (or view) reference.
|
|
25
|
+
@param [in] var Variable name for which a position should be returned
|
|
26
26
|
|
|
27
27
|
@author Allan Bowe
|
|
28
28
|
@version 9.2
|
package/base/mf_getvartype.sas
CHANGED
|
@@ -13,8 +13,8 @@ Usage:
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
@param libds Two part dataset (or view) reference.
|
|
17
|
-
@param var the variable name to be checked
|
|
16
|
+
@param [in] libds Two part dataset (or view) reference.
|
|
17
|
+
@param [in] var the variable name to be checked
|
|
18
18
|
@return output returns C or N depending on variable type. If variable
|
|
19
19
|
does not exist then a blank is returned and a note is written to the log.
|
|
20
20
|
|
package/base/mf_getxengine.sas
CHANGED
package/base/mf_increment.sas
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
%put Now we have run %mf_increment(cnt) lines;
|
|
12
12
|
%put There are %mf_increment(cnt) lines in total;
|
|
13
13
|
|
|
14
|
-
@param [in]
|
|
15
|
-
@param [in]
|
|
14
|
+
@param [in] macro_name The name of the macro variable to increment
|
|
15
|
+
@param [in] incr= (1) The amount to add or subtract to the macro
|
|
16
16
|
|
|
17
17
|
<h4> Related Files </h4>
|
|
18
18
|
@li mf_increment.test.sas
|
package/base/mf_isblank.sas
CHANGED
package/base/mf_isdir.sas
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
With thanks and full credit to Andrea Defronzo -
|
|
10
10
|
https://www.linkedin.com/in/andrea-defronzo-b1a47460/
|
|
11
11
|
|
|
12
|
-
@param path
|
|
12
|
+
@param [in] path Full path of the file/directory to be checked
|
|
13
13
|
|
|
14
14
|
@return output returns 1 if path is a directory, 0 if it is not
|
|
15
15
|
|
package/base/mf_loc.sas
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
%put %mf_loc(POF); %*location of PlatformObjectFramework tools;
|
|
8
8
|
|
|
9
|
+
@param [in] loc The item to locate, eg:
|
|
10
|
+
@li PLAATFORMOBJECTFRAMEWORK (or POF)
|
|
11
|
+
@li VIYACONFG
|
|
12
|
+
|
|
9
13
|
@version 9.2
|
|
10
14
|
@author Allan Bowe
|
|
11
15
|
**/
|
|
@@ -15,7 +19,8 @@
|
|
|
15
19
|
%local root;
|
|
16
20
|
|
|
17
21
|
%if &loc=POF or &loc=PLATFORMOBJECTFRAMEWORK %then %do;
|
|
18
|
-
%let root=%
|
|
22
|
+
%let root=%sysget(SASROOT);
|
|
23
|
+
%let root=%substr(&root,1,%index(&root,SASFoundation)-2);
|
|
19
24
|
%let root=&root/SASPlatformObjectFramework/&sysver;
|
|
20
25
|
%put Batch tools located at: &root;
|
|
21
26
|
&root
|
package/base/mf_mkdir.sas
CHANGED
package/base/mf_mval.sas
CHANGED
package/base/mf_nobs.sas
CHANGED
package/base/mf_trimstr.sas
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<h4> SAS Macros </h4>
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
@param basestr The string to be modified
|
|
15
|
-
@param trimstr The string to be removed from the end of `basestr`, if it
|
|
14
|
+
@param [in] basestr The string to be modified
|
|
15
|
+
@param [in] trimstr The string to be removed from the end of `basestr`, if it
|
|
16
16
|
exists
|
|
17
17
|
|
|
18
18
|
@return output returns result with the value of `trimstr` removed from the end
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
returns:
|
|
14
14
|
> blah blaaah brah
|
|
15
15
|
|
|
16
|
-
@param str1= string containing words to extract
|
|
17
|
-
@param str2= used to compare with the extract string
|
|
16
|
+
@param [in] str1= () string containing words to extract
|
|
17
|
+
@param [in] str2= () used to compare with the extract string
|
|
18
18
|
|
|
19
19
|
@warning CASE SENSITIVE!
|
|
20
20
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
returns:
|
|
17
17
|
> sss bram boo
|
|
18
18
|
|
|
19
|
-
@param [in] str1=
|
|
20
|
-
@param [in] str2=
|
|
19
|
+
@param [in] str1= () String containing words to extract
|
|
20
|
+
@param [in] str2= () Used to compare with the extract string
|
|
21
21
|
|
|
22
22
|
@version 9.2
|
|
23
23
|
@author Allan Bowe
|
package/base/mf_writefile.sas
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
@param [in] mode= (O) Available options are A or O as follows:
|
|
22
22
|
@li A APPEND mode, writes new records after the current end of the file.
|
|
23
23
|
@li O OUTPUT mode, writes new records from the beginning of the file.
|
|
24
|
-
@param [in] l1= First line
|
|
25
|
-
@param [in] l2= Second line (etc through to l10)
|
|
24
|
+
@param [in] l1= () First line
|
|
25
|
+
@param [in] l2= () Second line (etc through to l10)
|
|
26
26
|
|
|
27
27
|
<h4> Related Macros </h4>
|
|
28
28
|
@li mf_writefile.test.sas
|
package/base/mp_abort.sas
CHANGED
|
@@ -27,14 +27,15 @@
|
|
|
27
27
|
currently investigating approaches to deal with this.
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
@param mac= (mp_abort.sas) To contain the name of the calling macro. Do
|
|
31
|
-
use &sysmacroname as this will always resolve to MP_ABORT.
|
|
32
|
-
@param msg= message to be returned
|
|
33
|
-
@param iftrue= (1=1)
|
|
34
|
-
@param errds= (work.mp_abort_errds) There is no clean way to end a
|
|
35
|
-
within a %include called within a macro. Furthermore, there is no
|
|
36
|
-
test if a macro is called within a %include. To handle this
|
|
37
|
-
scenario, the %include should be switched for the mp_include.sas
|
|
30
|
+
@param [in] mac= (mp_abort.sas) To contain the name of the calling macro. Do
|
|
31
|
+
not use &sysmacroname as this will always resolve to MP_ABORT.
|
|
32
|
+
@param [out] msg= message to be returned
|
|
33
|
+
@param [in] iftrue= (1=1) Condition under which the macro should be executed
|
|
34
|
+
@param [in] errds= (work.mp_abort_errds) There is no clean way to end a
|
|
35
|
+
process within a %include called within a macro. Furthermore, there is no
|
|
36
|
+
way to test if a macro is called within a %include. To handle this
|
|
37
|
+
particular scenario, the %include should be switched for the mp_include.sas
|
|
38
|
+
macro.
|
|
38
39
|
This provides an indicator that we are running a macro within a \%include
|
|
39
40
|
(`_SYSINCLUDEFILEDEVICE`) and allows us to provide a dataset with the abort
|
|
40
41
|
values (msg, mac).
|
|
@@ -45,8 +46,8 @@
|
|
|
45
46
|
@li msg (the message)
|
|
46
47
|
@li mac (the mac param)
|
|
47
48
|
|
|
48
|
-
@param mode= (REGULAR) If mode=INCLUDE then the &errds dataset is checked
|
|
49
|
-
an abort status.
|
|
49
|
+
@param [in] mode= (REGULAR) If mode=INCLUDE then the &errds dataset is checked
|
|
50
|
+
for an abort status.
|
|
50
51
|
Valid values:
|
|
51
52
|
@li REGULAR (default)
|
|
52
53
|
@li INCLUDE
|
package/base/mp_aligndecimal.sas
CHANGED
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
7998580.8415
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
@param var The (data step, character) variable to modify
|
|
66
|
-
@param width= (8) The number of characters BEFORE the decimal point
|
|
65
|
+
@param [in] var The (data step, character) variable to modify
|
|
66
|
+
@param [in] width= (8) The number of characters BEFORE the decimal point
|
|
67
67
|
|
|
68
68
|
<h4> SAS Macros </h4>
|
|
69
69
|
@li mf_getuniquename.sas
|
package/base/mp_appendfile.sas
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
%mp_appendfile(baseref=tmp1, appendrefs=tmp2 tmp3)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
@param [in] baseref= Fileref of the base file (should exist)
|
|
21
|
-
@param [in] appendrefs= One or more filerefs to be appended to the base
|
|
20
|
+
@param [in] baseref= (0) Fileref of the base file (should exist)
|
|
21
|
+
@param [in] appendrefs= (0) One or more filerefs to be appended to the base
|
|
22
22
|
fileref. Space separated.
|
|
23
23
|
|
|
24
24
|
@version 9.2
|
package/base/mp_assertcols.sas
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
@param [in] inds The input library.dataset to test for values
|
|
34
|
-
@param [in] cols= The list of columns to check for
|
|
35
|
-
@param [in] desc= (
|
|
34
|
+
@param [in] cols= (0) The list of columns to check for
|
|
35
|
+
@param [in] desc= (0) The user provided test description
|
|
36
36
|
@param [in] test= (ALL) The test to apply. Valid values are:
|
|
37
37
|
@li ALL - Test is a PASS if ALL columns exist in &inds
|
|
38
38
|
@li ANY - Test is a PASS if ANY of the columns exist in &inds
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
@param [in] indscol The input library.dataset.column to test for values
|
|
39
|
-
@param [in] checkvals= A library.dataset.column value containing a UNIQUE
|
|
39
|
+
@param [in] checkvals= (0) A library.dataset.column value containing a UNIQUE
|
|
40
40
|
list of values to be compared against the source (indscol).
|
|
41
41
|
@param [in] desc= (Testing observations) The user provided test description
|
|
42
42
|
@param [in] test= (ALLVALS) The test to apply. Valid values are:
|
package/base/mp_base64copy.sas
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
put _infile_;
|
|
29
29
|
run;
|
|
30
30
|
|
|
31
|
-
@param [in] inref= Fileref of the input file (should exist)
|
|
32
|
-
@param [out] outref= Output fileref. If it does not exist, it is created.
|
|
31
|
+
@param [in] inref= (0) Fileref of the input file (should exist)
|
|
32
|
+
@param [out] outref= (0) Output fileref. If it does not exist, it is created.
|
|
33
33
|
@param [in] action= (ENCODE) The action to take. Valid values:
|
|
34
34
|
@li ENCODE - Convert the file to base64 format
|
|
35
35
|
@li DECODE - Decode the file from base64 format
|
package/base/mp_binarycopy.sas
CHANGED
|
@@ -22,16 +22,17 @@
|
|
|
22
22
|
%mp_binarycopy(inref=tmp1, outref=tmp2, mode=APPEND)
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
@param [in] inloc quoted "path/and/filename.ext" of the file to be copied
|
|
26
|
-
@param [out] outloc quoted "path/and/filename.ext" of the file to
|
|
27
|
-
@param [in] inref (____in) If provided, this fileref
|
|
25
|
+
@param [in] inloc= () quoted "path/and/filename.ext" of the file to be copied
|
|
26
|
+
@param [out] outloc= () quoted "path/and/filename.ext" of the file to create
|
|
27
|
+
@param [in] inref= (____in) If provided, this fileref takes precedence over
|
|
28
28
|
the `inloc` parameter
|
|
29
|
-
@param [out] outref (____in) If provided, this fileref
|
|
29
|
+
@param [out] outref= (____in) If provided, this fileref takes precedence
|
|
30
30
|
over the `outloc` parameter. It must already exist!
|
|
31
|
-
@param [in] mode (CREATE) Valid values:
|
|
31
|
+
@param [in] mode= (CREATE) Valid values:
|
|
32
32
|
@li CREATE - Create the file (even if it already exists)
|
|
33
33
|
@li APPEND - Append to the file (don't overwrite)
|
|
34
|
-
@param iftrue= (1=1)
|
|
34
|
+
@param [in] iftrue= (1=1)
|
|
35
|
+
Supply a condition for which the macro should be executed
|
|
35
36
|
|
|
36
37
|
@returns nothing
|
|
37
38
|
|
package/base/mp_chop.sas
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
For more examples, see mp_chop.test.sas
|
|
45
45
|
|
|
46
46
|
@param [in] infile The QUOTED path to the file on which to perform the chop
|
|
47
|
-
@param [in] matchvar= Macro variable NAME containing the string to split by
|
|
47
|
+
@param [in] matchvar= () Macro variable NAME containing the string to split by
|
|
48
48
|
@param [in] matchpoint= (START) Valid values:
|
|
49
49
|
@li START - chop at the beginning of the string in `matchvar`.
|
|
50
50
|
@li END - chop at the end of the string in `matchvar`.
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
@li FIRST - keep the section of the file before the chop
|
|
55
55
|
@li LAST - keep the section of the file after the chop
|
|
56
56
|
@param [in] mdebug= (0) Set to 1 to provide macro debugging
|
|
57
|
-
@param outfile= (0)
|
|
57
|
+
@param [out] outfile= (0)
|
|
58
|
+
Optional QUOTED path to the adjusted output file (avoids
|
|
58
59
|
overwriting the first file).
|
|
59
60
|
|
|
60
61
|
<h4> SAS Macros </h4>
|
package/base/mp_cleancsv.sas
CHANGED
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
fileref mycsv "/path/your/csv";
|
|
13
13
|
%mp_cleancsv(in=mycsv,out=/path/new.csv)
|
|
14
14
|
|
|
15
|
-
@param in= (NOTPROVIDED)
|
|
15
|
+
@param [in] in= (NOTPROVIDED)
|
|
16
|
+
Provide path or fileref to input csv. If a period is
|
|
16
17
|
found, it is assumed to be a file.
|
|
17
|
-
@param out= (NOTPROVIDED) Output path or fileref to output csv.
|
|
18
|
-
is found, it is assumed to be a file.
|
|
19
|
-
@param qchar= ('22'x) Quote char - hex code 22 is the double quote.
|
|
18
|
+
@param [in] out= (NOTPROVIDED) Output path or fileref to output csv.
|
|
19
|
+
If a period is found, it is assumed to be a file.
|
|
20
|
+
@param [in] qchar= ('22'x) Quote char - hex code 22 is the double quote.
|
|
20
21
|
|
|
21
22
|
@version 9.2
|
|
22
23
|
@author Allan Bowe
|
package/base/mp_copyfolder.sas
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
@param [in] source Unquoted path to the folder to copy from.
|
|
20
20
|
@param [out] target Unquoted path to the folder to copy to.
|
|
21
|
-
@param [in] copymax=(MAX) Set to a positive integer to indicate the level of
|
|
21
|
+
@param [in] copymax= (MAX) Set to a positive integer to indicate the level of
|
|
22
22
|
subdirectory copy recursion - eg 3, to go `./3/levels/deep`. For unlimited
|
|
23
23
|
recursion, set to MAX.
|
|
24
24
|
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
%mp_deleteconstraints(inds=work.constraints,outds=dropped,execute=YES)
|
|
19
19
|
%mp_createconstraints(inds=work.constraints,outds=created,execute=YES)
|
|
20
20
|
|
|
21
|
-
@param inds= (work.mp_getconstraints) The input table containing the
|
|
21
|
+
@param [in] inds= (work.mp_getconstraints) The input table containing the
|
|
22
22
|
constraint info
|
|
23
|
-
@param outds= (work.mp_createconstraints) A table containing the create
|
|
23
|
+
@param [out] outds= (work.mp_createconstraints) A table containing the create
|
|
24
24
|
statements (create_statement column)
|
|
25
|
-
@param execute= (NO) To actually create, use YES.
|
|
25
|
+
@param [in] execute= (NO) To actually create, use YES.
|
|
26
26
|
|
|
27
27
|
<h4> Related Files </h4>
|
|
28
28
|
@li mp_getconstraints.sas
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@file mp_createwebservice.sas
|
|
3
|
-
@brief Create a web service in SAS 9, Viya or SASjs Server
|
|
3
|
+
@brief Create a web service in SAS 9, Viya or SASjs Server (legacy)
|
|
4
4
|
@details This is actually a wrapper for mx_createwebservice.sas, remaining
|
|
5
5
|
for legacy purposes. For new apps, use mx_createwebservice.sas.
|
|
6
6
|
|
package/base/mp_csv2ds.sas
CHANGED
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
%mp_csv2ds(inref=mycsv,outds=myds,baseds=sashelp.class)
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
@param inref=
|
|
23
|
-
@param outds=
|
|
24
|
-
@param view= Set to YES or NO to determine whether the output
|
|
25
|
-
a view or not. Default is NO (not a view).
|
|
26
|
-
@param baseds=
|
|
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=
|
|
21
|
-
|
|
22
|
-
@param
|
|
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
|
package/base/mp_deletefolder.sas
CHANGED
package/base/mp_dictionary.sas
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|

|
|
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
|