1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-12 06:54:35 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Allan Bowe
1beb30d0ff fix: updating <h4> Dependencies </h4> in header to be <h4> SAS Macros </h4> in line with the updated SASjs compilation process (which distinguishes between SAS Macro and SAS Program dependencies)
BREAKING CHANGE - this doesn't break anything in the framework but I know of at least one old project that uses the <h4> Dependencies </h4> tag to perform backend compilation, so am bumping the version to be safe (looking at you, Chris
2020-12-25 10:36:19 +00:00
Allan Bowe
e334ea9b85 chore: all.sas update 2020-12-25 10:22:44 +00:00
Allan Bowe
c090c8d53b feat: simple macro to test the write speed for a library (very very basic) 2020-12-25 10:18:02 +00:00
Allan Bowe
659339bd98 fix: more comments in mp_prevobs 2020-12-25 10:15:03 +00:00
65 changed files with 210 additions and 132 deletions

View File

@@ -91,7 +91,25 @@ The **Macro Core** documentation is created using [doxygen](http://www.doxygen.n
- version. The EARLIEST SAS version in which this macro is known to work. - version. The EARLIEST SAS version in which this macro is known to work.
- author. Author name, contact details optional - author. Author name, contact details optional
All macros must be commented in the doxygen format, to enable the [online documentation](https://sasjs.github.io/core.github.io/). All macros must be commented in the doxygen format, to enable the [online documentation](https://core.sasjs.io).
### Dependencies
SAS code can contain one of two types of dependency - SAS Macros, and SAS Programs. When compiling projects using the [SASjs CLI](https://cli.sasjs.io) the doxygen header is scanned for ` @li` items under the following headers:
```
<h4> SAS Macros </h4>
@li mf_nobs.sas
@li mm_assignlib.sas
<h4> SAS Programs </h4>
@li somefile.ddl SOMEFREF
@li someprogram.sas FREFTWO
```
The CLI can then extract all the dependencies and insert as precode (SAS Macros) or in a temp engine fileref (SAS Programs) when creating SAS Jobs and Services.
When contributing to this library, it is therefore important to ensure that all dependencies are listed in the header in this format.
## Coding Standards ## Coding Standards
@@ -102,6 +120,7 @@ All macros must be commented in the doxygen format, to enable the [online docume
- Mandatory parameters should be positional, all optional parameters should be keyword (var=) style. - Mandatory parameters should be positional, all optional parameters should be keyword (var=) style.
- All dataset references must be 2 level (eg `work.blah`, not `blah`). This is to avoid contention when options [DATASTMTCHK](https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279064.htm)=ALLKEYWORDS is in effect. - All dataset references must be 2 level (eg `work.blah`, not `blah`). This is to avoid contention when options [DATASTMTCHK](https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279064.htm)=ALLKEYWORDS is in effect.
- Avoid naming collisions! All macro variables should be local scope. Use system generated work tables where possible - eg `data ; set sashelp.class; run; data &output; set &syslast; run;` - Avoid naming collisions! All macro variables should be local scope. Use system generated work tables where possible - eg `data ; set sashelp.class; run; data &output; set &syslast; run;`
- If you have a long-running SQL query, the use of a `quit;` statement is recommended in order to benefit from the timing statistics.
# General Notes # General Notes

132
all.sas
View File

@@ -199,7 +199,7 @@ options noquotelenmax;
@return output returns 1 or 0 (or -1 if not found) @return output returns 1 or 0 (or -1 if not found)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas
@@ -270,7 +270,7 @@ options noquotelenmax;
%put %mf_existVarList(sashelp.class, age sex name dummyvar) %put %mf_existVarList(sashelp.class, age sex name dummyvar)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_abort.sas @li mf_abort.sas
@param libds 2 part dataset or view reference @param libds 2 part dataset or view reference
@@ -522,7 +522,7 @@ options noquotelenmax;
@param switch the param for which to return a platform specific variable @param switch the param for which to return a platform specific variable
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mval.sas @li mf_mval.sas
@li mf_trimstr.sas @li mf_trimstr.sas
@@ -807,7 +807,7 @@ options noquotelenmax;
%put %mf_getvalue(sashelp.class,name,filter=%quote(age=15)); %put %mf_getvalue(sashelp.class,name,filter=%quote(age=15));
%put %mf_getvalue(sashelp.class,name); %put %mf_getvalue(sashelp.class,name);
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getattrn.sas @li mf_getattrn.sas
@param libds dataset to query @param libds dataset to query
@@ -1324,7 +1324,7 @@ Usage:
%put Number of observations=%mf_nobs(sashelp.class); %put Number of observations=%mf_nobs(sashelp.class);
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getattrn.sas @li mf_getattrn.sas
@param libds library.dataset @param libds library.dataset
@@ -1351,7 +1351,7 @@ Usage:
%put %mf_trimstr(/blah/,h); * /blah/; %put %mf_trimstr(/blah/,h); * /blah/;
%put %mf_trimstr(/blah/,h/);* /bla; %put %mf_trimstr(/blah/,h/);* /bla;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param basestr The string to be modified @param basestr The string to be modified
@@ -1422,7 +1422,7 @@ Usage:
Returns: Returns:
> 1 > 1
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_abort.sas @li mf_abort.sas
@param verifyvars space separated list of macro variable names @param verifyvars space separated list of macro variable names
@@ -1830,7 +1830,7 @@ Usage:
@param outds= a table containing the create statements (create_statement column) @param outds= a table containing the create statements (create_statement column)
@param execute= `YES|NO` - default is NO. To actually create, use YES. @param execute= `YES|NO` - default is NO. To actually create, use YES.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@@ -1900,7 +1900,7 @@ Usage:
;;;; ;;;;
%mp_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES) %mp_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas
@li mm_createwebservice.sas @li mm_createwebservice.sas
@li mv_createwebservice.sas @li mv_createwebservice.sas
@@ -1986,7 +1986,7 @@ Usage:
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_existds.sas @li mf_existds.sas
@@ -2375,7 +2375,7 @@ run;
create view view2 as select * from sashelp.class; create view view2 as select * from sashelp.class;
%mp_dropmembers(list=data1 view2) %mp_dropmembers(list=data1 view2)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_isblank.sas @li mf_isblank.sas
@@ -2725,7 +2725,7 @@ run;
@param ds= The target dataset. Leave blank (default) for all datasets. @param ds= The target dataset. Leave blank (default) for all datasets.
@param outds the output dataset @param outds the output dataset
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@@ -3103,7 +3103,7 @@ run;
proc sql; describe table &syslast; proc sql; describe table &syslast;
%mp_getddl(work,test,flavour=tsql,showlog=YES) %mp_getddl(work,test,flavour=tsql,showlog=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_getconstraints.sas @li mp_getconstraints.sas
@param lib libref of the library to create DDL for. Should be assigned. @param lib libref of the library to create DDL for. Should be assigned.
@@ -3460,7 +3460,7 @@ run;
@param libds Two part dataset (or view) reference. @param libds Two part dataset (or view) reference.
@param outds= The output dataset to create @param outds= The output dataset to create
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getvartype.sas @li mf_getvartype.sas
@li mf_getvarformat.sas @li mf_getvarformat.sas
@@ -3532,7 +3532,7 @@ create table &outds (rename=(
@param min_rows= The minimum number of rows a table should have in order to try @param min_rows= The minimum number of rows a table should have in order to try
and guess the PK. Default=5. and guess the PK. Default=5.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getuniquename.sas @li mf_getuniquename.sas
@li mf_nobs.sas @li mf_nobs.sas
@@ -3985,7 +3985,7 @@ create table &outds (rename=(
%mp_lib2cards(lib=sashelp %mp_lib2cards(lib=sashelp
, outloc= C:\temp ) , outloc= C:\temp )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mkdir.sas @li mf_mkdir.sas
@li mp_ds2cards.sas @li mp_ds2cards.sas
@@ -4080,16 +4080,16 @@ select distinct lowcase(memname)
data example; data example;
set sashelp.class; set sashelp.class;
calc_var=_n_*3; calc_var=_n_*3;
* initialise hash and save from PDV ; %* initialise hash and save from PDV ;
%mp_prevobs(INIT,history=2) %mp_prevobs(INIT,history=2)
if _n_ =10 then do; if _n_ =10 then do;
* fetch previous but 1 record; %* fetch previous but 1 record;
%mp_prevobs(FETCH,-2) %mp_prevobs(FETCH,-2)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
* fetch previous record; %* fetch previous record;
%mp_prevobs(FETCH,-1) %mp_prevobs(FETCH,-1)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
* reinstate current record ; %* reinstate current record ;
%mp_prevobs(FETCH,0) %mp_prevobs(FETCH,0)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
end; end;
@@ -4420,7 +4420,7 @@ proc sort; by descending sumcols memname libname; run;
@param outobs= set to a positive integer to restrict the number of observations @param outobs= set to a positive integer to restrict the number of observations
@param filter_text= add a (valid) filter clause to further filter the results @param filter_text= add a (valid) filter clause to further filter the results
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getvartype.sas @li mf_getvartype.sas
@li mf_mkdir.sas @li mf_mkdir.sas
@@ -4518,7 +4518,7 @@ proc sql
%mp_setkeyvalue(someindex,22,type=N) %mp_setkeyvalue(someindex,22,type=N)
%mp_setkeyvalue(somenewindex,somevalue) %mp_setkeyvalue(somenewindex,somevalue)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_existds.sas @li mf_existds.sas
@param key Provide a key on which to perform the lookup @param key Provide a key on which to perform the lookup
@@ -4646,7 +4646,7 @@ proc sql
%mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt) %mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas
@li mp_binarycopy.sas @li mp_binarycopy.sas
@@ -4771,7 +4771,7 @@ proc sql
@param size= (0.1) The size in GB of the table to create @param size= (0.1) The size in GB of the table to create
@param outds= (WORK.RESULTS) The output dataset to be created. @param outds= (WORK.RESULTS) The output dataset to be created.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getuniquename.sas @li mf_getuniquename.sas
@li mf_existds.sas @li mf_existds.sas
@@ -4893,7 +4893,7 @@ run;
%mp_unzip(ziploc="/some/file.zip",outdir=/some/folder) %mp_unzip(ziploc="/some/file.zip",outdir=/some/folder)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mkdir.sas @li mf_mkdir.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -4964,7 +4964,7 @@ run;
@param var The variable to modify @param var The variable to modify
@param len The new length to apply @param len The new length to apply
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_existds.sas @li mf_existds.sas
@li mp_abort.sas @li mp_abort.sas
@li mf_existvar.sas @li mf_existvar.sas
@@ -5051,7 +5051,7 @@ alter table &libds modify &var char(&len);
be sure that _debug is not set (else the SPWA will send non zipped content be sure that _debug is not set (else the SPWA will send non zipped content
as well). as well).
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_dirlist.sas @li mp_dirlist.sas
@param in= unquoted filepath, dataset of files or directory to zip @param in= unquoted filepath, dataset of files or directory to zip
@@ -5228,7 +5228,7 @@ filename __us2grp clear;
disconnect from MyAlias; disconnect from MyAlias;
quit; quit;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getengine.sas @li mf_getengine.sas
@li mp_abort.sas @li mp_abort.sas
@@ -5676,7 +5676,7 @@ run;
%mm_assignlib(SOMEREF) %mm_assignlib(SOMEREF)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@param libref the libref (not name) of the metadata library @param libref the libref (not name) of the metadata library
@@ -5757,7 +5757,7 @@ run;
@warning application components do not get deleted when removing the container folder! be sure you have the administrative priviliges to remove this kind of metadata from the SMC plugin (or be ready to do to so programmatically). @warning application components do not get deleted when removing the container folder! be sure you have the administrative priviliges to remove this kind of metadata from the SMC plugin (or be ready to do to so programmatically).
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@@ -5912,7 +5912,7 @@ run;
%mm_createdataset(tableuri=G5X8AFW1.BE00015Y) %mm_createdataset(tableuri=G5X8AFW1.BE00015Y)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getlibs.sas @li mm_getlibs.sas
@li mm_gettables.sas @li mm_gettables.sas
@li mm_getcols.sas @li mm_getcols.sas
@@ -5988,7 +5988,7 @@ run;
%mm_createdocument(tree=/User Folders/sasdemo %mm_createdocument(tree=/User Folders/sasdemo
,name=MyNote) ,name=MyNote)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@@ -6277,7 +6277,7 @@ run;
,directory=/tmp/tests ,directory=/tmp/tests
,mDebug=1) ,mDebug=1)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@li mm_createfolder.sas @li mm_createfolder.sas
@@ -6618,7 +6618,7 @@ filename &frefout temp;
,Server=SASApp ,Server=SASApp
,stptype=2) ,stptype=2)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_nobs.sas @li mf_nobs.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@li mm_getdirectories.sas @li mm_getdirectories.sas
@@ -6991,7 +6991,7 @@ Usage:
;;;; ;;;;
%mm_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES) %mm_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_createstp.sas @li mm_createstp.sas
@li mf_getuser.sas @li mf_getuser.sas
@li mm_createfolder.sas @li mm_createfolder.sas
@@ -7382,7 +7382,7 @@ run;
%mm_createdocument(tree=/User Folders/&sysuserid,name=MyNote) %mm_createdocument(tree=/User Folders/&sysuserid,name=MyNote)
%mm_deletedocument(target=/User Folders/&sysuserid/MyNote) %mm_deletedocument(target=/User Folders/&sysuserid/MyNote)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the document being deleted @param target= full path to the document being deleted
@@ -7452,7 +7452,7 @@ run;
%mm_deletestp(target=/some/meta/path/myStoredProcess) %mm_deletestp(target=/some/meta/path/myStoredProcess)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the STP being deleted @param target= full path to the STP being deleted
@@ -7522,7 +7522,7 @@ run;
@param outds= the ONE LEVEL work dataset to create @param outds= the ONE LEVEL work dataset to create
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getobjects.sas @li mm_getobjects.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@li mm_getdetails.sas @li mm_getdetails.sas
@@ -7812,7 +7812,7 @@ run;
,outref=/some/unquoted/filename.ext ,outref=/some/unquoted/filename.ext
) )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@param tree= The metadata path of the document @param tree= The metadata path of the document
@@ -7961,7 +7961,7 @@ filename __outdoc clear;
@param outds= the dataset to create that contains the list of directories @param outds= the dataset to create that contains the list of directories
@param mDebug= set to 1 to show debug messages in the log @param mDebug= set to 1 to show debug messages in the log
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe
@@ -8648,7 +8648,7 @@ libname _XML_ clear;
filename __mc2 clear; filename __mc2 clear;
libname __mc3 clear; libname __mc3 clear;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getrepos.sas @li mm_getrepos.sas
@version 9.3 @version 9.3
@@ -8887,7 +8887,7 @@ filename __outdoc clear;
%mm_getstps(tree=/My Folder/My STPs, name=My STP) %mm_getstps(tree=/My Folder/My STPs, name=My STP)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_gettree.sas @li mm_gettree.sas
@param tree= the metadata folder location in which to search. Leave blank @param tree= the metadata folder location in which to search. Leave blank
@@ -9555,7 +9555,7 @@ filename __shake clear;
./mmscript.sh "myuser" "mypass" ./mmscript.sh "myuser" "mypass"
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@li mm_tree.sas @li mm_tree.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -9675,7 +9675,7 @@ run;
Table Table
,outds=morestuff) ,outds=morestuff)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getquotedstr.sas @li mf_getquotedstr.sas
@li mm_getpublictypes.sas @li mm_getpublictypes.sas
@li mf_isblank.sas @li mf_isblank.sas
@@ -10056,7 +10056,7 @@ run;
%mm_updatestpservertype(target=/some/meta/path/myStoredProcess %mm_updatestpservertype(target=/some/meta/path/myStoredProcess
,type=WKS) ,type=WKS)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the STP being deleted @param target= full path to the STP being deleted
@param type= Either WKS or STP depending on whether Workspace or Stored Process @param type= Either WKS or STP depending on whether Workspace or Stored Process
@@ -10412,7 +10412,7 @@ run;
%mmx_deletemetafolder(loc=/some/meta/folder,user=sasdemo,pass=mars345) %mmx_deletemetafolder(loc=/some/meta/folder,user=sasdemo,pass=mars345)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@param loc= the metadata folder to delete @param loc= the metadata folder to delete
@@ -10467,7 +10467,7 @@ Usage:
,outspkpath=%str(/tmp) ,outspkpath=%str(/tmp)
) )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@li mm_tree.sas @li mm_tree.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -10549,7 +10549,7 @@ run;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@li mf_getuniquelibref.sas @li mf_getuniquelibref.sas
@@ -10712,7 +10712,7 @@ options noquotelenmax;
To minimise postgres requests, output json is stored in a temporary file To minimise postgres requests, output json is stored in a temporary file
and then sent to _webout in one go at the end. and then sent to _webout in one go at the end.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mv_createfolder.sas @li mv_createfolder.sas
@li mf_getuniquelibref.sas @li mf_getuniquelibref.sas
@@ -11362,7 +11362,7 @@ run;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -11511,7 +11511,7 @@ libname &libref1a clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -11655,7 +11655,7 @@ libname &libref1a clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -11783,7 +11783,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_tokenrefresh.sas @li mv_tokenrefresh.sas
**/ **/
@@ -11814,7 +11814,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_registerclient.sas @li mv_registerclient.sas
**/ **/
@@ -11862,7 +11862,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -11948,7 +11948,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12081,7 +12081,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12185,7 +12185,7 @@ filename &fname1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12255,7 +12255,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_tokenauth.sas @li mv_tokenauth.sas
**/ **/
@@ -12304,7 +12304,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12422,7 +12422,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12533,7 +12533,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12709,7 +12709,7 @@ libname &libref;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -12932,7 +12932,7 @@ libname &libref clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -13074,7 +13074,7 @@ filename &fref2 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@@ -13189,7 +13189,7 @@ filename &fref1 clear;
@param dslabel= value to use instead of the real name for sending to JSON @param dslabel= value to use instead of the real name for sending to JSON
@param fmt= change to N to strip formats from output @param fmt= change to N to strip formats from output
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_jsonout.sas @li mp_jsonout.sas
@li mf_getuser.sas @li mf_getuser.sas

View File

@@ -13,7 +13,7 @@
@return output returns 1 or 0 (or -1 if not found) @return output returns 1 or 0 (or -1 if not found)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas

View File

@@ -6,7 +6,7 @@
%put %mf_existVarList(sashelp.class, age sex name dummyvar) %put %mf_existVarList(sashelp.class, age sex name dummyvar)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_abort.sas @li mf_abort.sas
@param libds 2 part dataset or view reference @param libds 2 part dataset or view reference

View File

@@ -10,7 +10,7 @@
@param switch the param for which to return a platform specific variable @param switch the param for which to return a platform specific variable
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mval.sas @li mf_mval.sas
@li mf_trimstr.sas @li mf_trimstr.sas

View File

@@ -7,7 +7,7 @@
%put %mf_getvalue(sashelp.class,name,filter=%quote(age=15)); %put %mf_getvalue(sashelp.class,name,filter=%quote(age=15));
%put %mf_getvalue(sashelp.class,name); %put %mf_getvalue(sashelp.class,name);
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getattrn.sas @li mf_getattrn.sas
@param libds dataset to query @param libds dataset to query

View File

@@ -6,7 +6,7 @@
%put Number of observations=%mf_nobs(sashelp.class); %put Number of observations=%mf_nobs(sashelp.class);
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getattrn.sas @li mf_getattrn.sas
@param libds library.dataset @param libds library.dataset

View File

@@ -8,7 +8,7 @@
%put %mf_trimstr(/blah/,h); * /blah/; %put %mf_trimstr(/blah/,h); * /blah/;
%put %mf_trimstr(/blah/,h/);* /bla; %put %mf_trimstr(/blah/,h/);* /bla;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param basestr The string to be modified @param basestr The string to be modified

View File

@@ -11,7 +11,7 @@
Returns: Returns:
> 1 > 1
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_abort.sas @li mf_abort.sas
@param verifyvars space separated list of macro variable names @param verifyvars space separated list of macro variable names

View File

@@ -22,7 +22,7 @@
@param outds= a table containing the create statements (create_statement column) @param outds= a table containing the create statements (create_statement column)
@param execute= `YES|NO` - default is NO. To actually create, use YES. @param execute= `YES|NO` - default is NO. To actually create, use YES.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe

View File

@@ -26,7 +26,7 @@ Usage:
;;;; ;;;;
%mp_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES) %mp_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas
@li mm_createwebservice.sas @li mm_createwebservice.sas
@li mv_createwebservice.sas @li mv_createwebservice.sas

View File

@@ -29,7 +29,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_existds.sas @li mf_existds.sas

View File

@@ -9,7 +9,7 @@
create view view2 as select * from sashelp.class; create view view2 as select * from sashelp.class;
%mp_dropmembers(list=data1 view2) %mp_dropmembers(list=data1 view2)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_isblank.sas @li mf_isblank.sas

View File

@@ -21,7 +21,7 @@
@param ds= The target dataset. Leave blank (default) for all datasets. @param ds= The target dataset. Leave blank (default) for all datasets.
@param outds the output dataset @param outds the output dataset
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe

View File

@@ -15,7 +15,7 @@
proc sql; describe table &syslast; proc sql; describe table &syslast;
%mp_getddl(work,test,flavour=tsql,showlog=YES) %mp_getddl(work,test,flavour=tsql,showlog=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_getconstraints.sas @li mp_getconstraints.sas
@param lib libref of the library to create DDL for. Should be assigned. @param lib libref of the library to create DDL for. Should be assigned.

View File

@@ -21,7 +21,7 @@
@param libds Two part dataset (or view) reference. @param libds Two part dataset (or view) reference.
@param outds= The output dataset to create @param outds= The output dataset to create
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getvartype.sas @li mf_getvartype.sas
@li mf_getvarformat.sas @li mf_getvarformat.sas

View File

@@ -22,7 +22,7 @@
@param min_rows= The minimum number of rows a table should have in order to try @param min_rows= The minimum number of rows a table should have in order to try
and guess the PK. Default=5. and guess the PK. Default=5.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getuniquename.sas @li mf_getuniquename.sas
@li mf_nobs.sas @li mf_nobs.sas

View File

@@ -8,7 +8,7 @@
%mp_lib2cards(lib=sashelp %mp_lib2cards(lib=sashelp
, outloc= C:\temp ) , outloc= C:\temp )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mkdir.sas @li mf_mkdir.sas
@li mp_ds2cards.sas @li mp_ds2cards.sas

View File

@@ -12,16 +12,16 @@
data example; data example;
set sashelp.class; set sashelp.class;
calc_var=_n_*3; calc_var=_n_*3;
* initialise hash and save from PDV ; %* initialise hash and save from PDV ;
%mp_prevobs(INIT,history=2) %mp_prevobs(INIT,history=2)
if _n_ =10 then do; if _n_ =10 then do;
* fetch previous but 1 record; %* fetch previous but 1 record;
%mp_prevobs(FETCH,-2) %mp_prevobs(FETCH,-2)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
* fetch previous record; %* fetch previous record;
%mp_prevobs(FETCH,-1) %mp_prevobs(FETCH,-1)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
* reinstate current record ; %* reinstate current record ;
%mp_prevobs(FETCH,0) %mp_prevobs(FETCH,0)
put _n_= name= age= calc_var=; put _n_= name= age= calc_var=;
end; end;

View File

@@ -25,7 +25,7 @@
@param outobs= set to a positive integer to restrict the number of observations @param outobs= set to a positive integer to restrict the number of observations
@param filter_text= add a (valid) filter clause to further filter the results @param filter_text= add a (valid) filter clause to further filter the results
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getvarlist.sas @li mf_getvarlist.sas
@li mf_getvartype.sas @li mf_getvartype.sas
@li mf_mkdir.sas @li mf_mkdir.sas

View File

@@ -6,7 +6,7 @@
%mp_setkeyvalue(someindex,22,type=N) %mp_setkeyvalue(someindex,22,type=N)
%mp_setkeyvalue(somenewindex,somevalue) %mp_setkeyvalue(somenewindex,somevalue)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_existds.sas @li mf_existds.sas
@param key Provide a key on which to perform the lookup @param key Provide a key on which to perform the lookup

View File

@@ -11,7 +11,7 @@
%mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt) %mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getplatform.sas @li mf_getplatform.sas
@li mp_binarycopy.sas @li mp_binarycopy.sas

View File

@@ -0,0 +1,59 @@
/**
@file mp_testwritespeedlibrary.sas
@brief Tests the write speed of a new table in a SAS library
@details Will create a new table of a certain size in an
existing SAS library. The table will have one column,
and will be subsequently deleted.
%mp_testwritespeedlibrary(
lib=work
,size=0.5
,outds=work.results
)
@param lib= (WORK) The library in which to create the table
@param size= (0.1) The size in GB of the table to create
@param outds= (WORK.RESULTS) The output dataset to be created.
<h4> SAS Macros </h4>
@li mf_getuniquename.sas
@li mf_existds.sas
@version 9.4
@author Allan Bowe
**/
%macro mp_testwritespeedlibrary(lib=WORK
,outds=work.results
,size=0.1
)/*/STORE SOURCE*/;
%local ds start;
/* find an unused, unique name for the new table */
%let ds=%mf_getuniquename();
%do %until(%mf_existds(&lib..&ds)=0);
%let ds=%mf_getuniquename();
%end;
%let start=%sysfunc(datetime());
data &lib..&ds(compress=no keep=x);
header=128*1024;
size=(1073741824/8 * &size) - header;
do x=1 to size;
output;
end;
run;
proc sql;
drop table &lib..&ds;
data &outds;
lib="&lib";
start_dttm=put(&start,datetime19.);
end_dttm=put(datetime(),datetime19.);
duration_seconds=end_dttm-start_dttm;
run;
%mend;

View File

@@ -12,7 +12,7 @@
%mp_unzip(ziploc="/some/file.zip",outdir=/some/folder) %mp_unzip(ziploc="/some/file.zip",outdir=/some/folder)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_mkdir.sas @li mf_mkdir.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -18,7 +18,7 @@
@param var The variable to modify @param var The variable to modify
@param len The new length to apply @param len The new length to apply
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_existds.sas @li mf_existds.sas
@li mp_abort.sas @li mp_abort.sas
@li mf_existvar.sas @li mf_existvar.sas

View File

@@ -12,7 +12,7 @@
be sure that _debug is not set (else the SPWA will send non zipped content be sure that _debug is not set (else the SPWA will send non zipped content
as well). as well).
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_dirlist.sas @li mp_dirlist.sas
@param in= unquoted filepath, dataset of files or directory to zip @param in= unquoted filepath, dataset of files or directory to zip

View File

@@ -14,7 +14,7 @@
disconnect from MyAlias; disconnect from MyAlias;
quit; quit;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getengine.sas @li mf_getengine.sas
@li mp_abort.sas @li mp_abort.sas

View File

@@ -10,7 +10,7 @@
%mm_assignlib(SOMEREF) %mm_assignlib(SOMEREF)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@param libref the libref (not name) of the metadata library @param libref the libref (not name) of the metadata library

View File

@@ -15,7 +15,7 @@
@warning application components do not get deleted when removing the container folder! be sure you have the administrative priviliges to remove this kind of metadata from the SMC plugin (or be ready to do to so programmatically). @warning application components do not get deleted when removing the container folder! be sure you have the administrative priviliges to remove this kind of metadata from the SMC plugin (or be ready to do to so programmatically).
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas

View File

@@ -18,7 +18,7 @@
%mm_createdataset(tableuri=G5X8AFW1.BE00015Y) %mm_createdataset(tableuri=G5X8AFW1.BE00015Y)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getlibs.sas @li mm_getlibs.sas
@li mm_gettables.sas @li mm_gettables.sas
@li mm_getcols.sas @li mm_getcols.sas

View File

@@ -12,7 +12,7 @@
%mm_createdocument(tree=/User Folders/sasdemo %mm_createdocument(tree=/User Folders/sasdemo
,name=MyNote) ,name=MyNote)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas

View File

@@ -19,7 +19,7 @@
,directory=/tmp/tests ,directory=/tmp/tests
,mDebug=1) ,mDebug=1)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@li mm_createfolder.sas @li mm_createfolder.sas

View File

@@ -39,7 +39,7 @@
,Server=SASApp ,Server=SASApp
,stptype=2) ,stptype=2)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_nobs.sas @li mf_nobs.sas
@li mf_verifymacvars.sas @li mf_verifymacvars.sas
@li mm_getdirectories.sas @li mm_getdirectories.sas

View File

@@ -24,7 +24,7 @@ Usage:
;;;; ;;;;
%mm_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES) %mm_createwebservice(path=/Public/app/common,name=appInit,code=ft15f001,replace=YES)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_createstp.sas @li mm_createstp.sas
@li mf_getuser.sas @li mf_getuser.sas
@li mm_createfolder.sas @li mm_createfolder.sas

View File

@@ -8,7 +8,7 @@
%mm_createdocument(tree=/User Folders/&sysuserid,name=MyNote) %mm_createdocument(tree=/User Folders/&sysuserid,name=MyNote)
%mm_deletedocument(target=/User Folders/&sysuserid/MyNote) %mm_deletedocument(target=/User Folders/&sysuserid/MyNote)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the document being deleted @param target= full path to the document being deleted

View File

@@ -7,7 +7,7 @@
%mm_deletestp(target=/some/meta/path/myStoredProcess) %mm_deletestp(target=/some/meta/path/myStoredProcess)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the STP being deleted @param target= full path to the STP being deleted

View File

@@ -7,7 +7,7 @@
@param outds= the ONE LEVEL work dataset to create @param outds= the ONE LEVEL work dataset to create
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getobjects.sas @li mm_getobjects.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@li mm_getdetails.sas @li mm_getdetails.sas

View File

@@ -11,7 +11,7 @@
,outref=/some/unquoted/filename.ext ,outref=/some/unquoted/filename.ext
) )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@param tree= The metadata path of the document @param tree= The metadata path of the document

View File

@@ -14,7 +14,7 @@
@param outds= the dataset to create that contains the list of directories @param outds= the dataset to create that contains the list of directories
@param mDebug= set to 1 to show debug messages in the log @param mDebug= set to 1 to show debug messages in the log
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe

View File

@@ -14,7 +14,7 @@
filename __mc2 clear; filename __mc2 clear;
libname __mc3 clear; libname __mc3 clear;
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_getrepos.sas @li mm_getrepos.sas
@version 9.3 @version 9.3

View File

@@ -14,7 +14,7 @@
%mm_getstps(tree=/My Folder/My STPs, name=My STP) %mm_getstps(tree=/My Folder/My STPs, name=My STP)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mm_gettree.sas @li mm_gettree.sas
@param tree= the metadata folder location in which to search. Leave blank @param tree= the metadata folder location in which to search. Leave blank

View File

@@ -45,7 +45,7 @@
./mmscript.sh "myuser" "mypass" ./mmscript.sh "myuser" "mypass"
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@li mm_tree.sas @li mm_tree.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -46,7 +46,7 @@
Table Table
,outds=morestuff) ,outds=morestuff)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_getquotedstr.sas @li mf_getquotedstr.sas
@li mm_getpublictypes.sas @li mm_getpublictypes.sas
@li mf_isblank.sas @li mf_isblank.sas

View File

@@ -8,7 +8,7 @@
%mm_updatestpservertype(target=/some/meta/path/myStoredProcess %mm_updatestpservertype(target=/some/meta/path/myStoredProcess
,type=WKS) ,type=WKS)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@param target= full path to the STP being deleted @param target= full path to the STP being deleted
@param type= Either WKS or STP depending on whether Workspace or Stored Process @param type= Either WKS or STP depending on whether Workspace or Stored Process

View File

@@ -9,7 +9,7 @@
%mmx_deletemetafolder(loc=/some/meta/folder,user=sasdemo,pass=mars345) %mmx_deletemetafolder(loc=/some/meta/folder,user=sasdemo,pass=mars345)
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@param loc= the metadata folder to delete @param loc= the metadata folder to delete

View File

@@ -25,7 +25,7 @@ Usage:
,outspkpath=%str(/tmp) ,outspkpath=%str(/tmp)
) )
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mf_loc.sas @li mf_loc.sas
@li mm_tree.sas @li mm_tree.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -17,7 +17,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas
@li mf_getuniquelibref.sas @li mf_getuniquelibref.sas

View File

@@ -29,7 +29,7 @@
To minimise postgres requests, output json is stored in a temporary file To minimise postgres requests, output json is stored in a temporary file
and then sent to _webout in one go at the end. and then sent to _webout in one go at the end.
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mv_createfolder.sas @li mv_createfolder.sas
@li mf_getuniquelibref.sas @li mf_getuniquelibref.sas

View File

@@ -22,7 +22,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -21,7 +21,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -18,7 +18,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -5,7 +5,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_tokenrefresh.sas @li mv_tokenrefresh.sas
**/ **/

View File

@@ -5,7 +5,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_registerclient.sas @li mv_registerclient.sas
**/ **/

View File

@@ -31,7 +31,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -17,7 +17,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -32,7 +32,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -31,7 +31,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -5,7 +5,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mv_tokenauth.sas @li mv_tokenauth.sas
**/ **/

View File

@@ -22,7 +22,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -49,7 +49,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -45,7 +45,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -54,7 +54,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -43,7 +43,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -42,7 +42,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe, source: https://github.com/sasjs/core @author Allan Bowe, source: https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_abort.sas @li mp_abort.sas
@li mf_getplatform.sas @li mf_getplatform.sas
@li mf_getuniquefileref.sas @li mf_getuniquefileref.sas

View File

@@ -27,7 +27,7 @@
@param dslabel= value to use instead of the real name for sending to JSON @param dslabel= value to use instead of the real name for sending to JSON
@param fmt= change to N to strip formats from output @param fmt= change to N to strip formats from output
<h4> Dependencies </h4> <h4> SAS Macros </h4>
@li mp_jsonout.sas @li mp_jsonout.sas
@li mf_getuser.sas @li mf_getuser.sas