1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-12 15:04:36 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Allan Bowe
6b1ea7323c fix: updating ref to main (not master) 2020-07-09 09:38:29 +02:00
Krishna Acondy
5f1eaefa11 Merge pull request #1 from sasjs/ci-update
fix(ci): update default branch to main
2020-07-09 08:21:59 +01:00
Krishna Acondy
77aec4a9da fix(ci): update default branch to main 2020-07-09 08:20:27 +01:00
Allan Bowe
a9e9f28e05 docs: revamp with new repo location 2020-07-07 23:09:33 +02:00
45 changed files with 138 additions and 131 deletions

View File

@@ -6,7 +6,7 @@ name: SASjs Core Publish
on: on:
push: push:
branches: branches:
- master - main
jobs: jobs:
release: release:

View File

@@ -1,11 +1,11 @@
# Macro Core # Macro Core
Much quality. Many standards. The **Macro Core** library exists to save time and development effort! Herein ye shall find a veritable host of MIT-licenced, production quality SAS macros. These are a mix of tools, utilities, functions and code generators that are useful in the context of Application Development on the SAS platform (eg https://datacontroller.io). [Contributions](https://github.com/sasjs/core/blob/master/CONTRIBUTING.md) are welcomed. Much quality. Many standards. The **Macro Core** library exists to save time and development effort! Herein ye shall find a veritable host of MIT-licenced, production quality SAS macros. These are a mix of tools, utilities, functions and code generators that are useful in the context of Application Development on the SAS platform (eg https://datacontroller.io). [Contributions](https://github.com/sasjs/core/blob/main/CONTRIBUTING.md) are welcomed.
You can download and compile them all in just two lines of SAS code: You can download and compile them all in just two lines of SAS code:
```sas ```sas
filename mc url "https://raw.githubusercontent.com/sasjs/core/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
``` ```
@@ -54,7 +54,7 @@ The above can be done directly in your sas program, via an autoexec, or an initi
Alternatively - for quick access - simply run the following! This file contains all the macros. Alternatively - for quick access - simply run the following! This file contains all the macros.
```sas ```sas
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
``` ```

View File

@@ -7,10 +7,10 @@
'included' in SAS with just 2 lines of code: 'included' in SAS with just 2 lines of code:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
The `build.py` file in the https://github.com/macropeople/macrocore repo The `build.py` file in the https://github.com/sasjs/core repo
is used to create this file. is used to create this file.
@author Allan Bowe @author Allan Bowe
@@ -497,7 +497,7 @@ options noquotelenmax;
%end; %end;
%else %put %str(ERR)OR: Unable to find key &key in ds &libds; %else %put %str(ERR)OR: Unable to find key &key in ds &libds;
%mend;/** %mend;/**
@file mf_getplatform @file mf_getplatform.sas
@brief Returns platform specific variables @brief Returns platform specific variables
@details Enables platform specific variables to be returned @details Enables platform specific variables to be returned
@@ -1765,7 +1765,7 @@ run;
Usage: Usage:
%* compile macros ; %* compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* write some code; %* write some code;
@@ -2311,7 +2311,7 @@ data _null_;
put '/*******************************************************************'; put '/*******************************************************************';
put " Datalines for %upcase(%scan(&base_ds,2)) dataset "; put " Datalines for %upcase(%scan(&base_ds,2)) dataset ";
put " Generated by %nrstr(%%)mp_ds2cards()"; put " Generated by %nrstr(%%)mp_ds2cards()";
put " Available on github.com/macropeople/macrocore"; put " Available on github.com/sasjs/core";
put '********************************************************************/'; put '********************************************************************/';
put "data &tgt_ds &indexes;"; put "data &tgt_ds &indexes;";
put "attrib "; put "attrib ";
@@ -2465,7 +2465,7 @@ create table &outds as
@version 9.3 @version 9.3
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -2748,7 +2748,7 @@ create table &outds (rename=(
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_guesspk(sashelp.class,outds=classpks) %mp_guesspk(sashelp.class,outds=classpks)
@@ -3062,7 +3062,8 @@ create table &outds (rename=(
run; run;
If you are building web apps with SAS then you are strongly encouraged to use If you are building web apps with SAS then you are strongly encouraged to use
the mX_createwebservice macros in combination with [sasjs](https://github.com/macropeople/sasjs). the mX_createwebservice macros in combination with the
[sasjs adapter](https://github.com/sasjs/adapter).
For more information see https://sasjs.io For more information see https://sasjs.io
@param action Valid values: @param action Valid values:
@@ -3083,7 +3084,7 @@ create table &outds (rename=(
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3268,7 +3269,7 @@ select distinct lowcase(memname)
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3451,7 +3452,7 @@ run;
@version 9.3 @version 9.3
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3657,7 +3658,7 @@ proc sql
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3719,7 +3720,7 @@ proc sql
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3769,7 +3770,7 @@ proc sql
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt) %mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt)
@@ -3783,7 +3784,7 @@ proc sql
@param outname= the name of the file, as downloaded by the browser @param outname= the name of the file, as downloaded by the browser
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -3870,7 +3871,7 @@ proc sql
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_unzip(ziploc="/some/file.zip",outdir=/some/folder) %mp_unzip(ziploc="/some/file.zip",outdir=/some/folder)
@@ -3884,7 +3885,7 @@ proc sql
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -4044,7 +4045,7 @@ alter table &libds modify &var char(&len);
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -5949,12 +5950,12 @@ run;
%mend;/** %mend;/**
@file mm_createwebservice.sas @file mm_createwebservice.sas
@brief Create a Web Ready Stored Process @brief Create a Web Ready Stored Process
@details This macro creates a Type 2 Stored Process with the macropeople @details This macro creates a Type 2 Stored Process with the mm_webout macro
mm_webout macro included as pre-code. included as pre-code.
Usage: Usage:
%* compile macros ; %* compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* parmcards lets us write to a text file from open code ; %* parmcards lets us write to a text file from open code ;
@@ -8289,7 +8290,8 @@ libname _XML_ clear;
/** /**
@file @file
@brief Retrieves properties of the SAS web app server @brief Retrieves properties of the SAS web app server
@description usage: @details
Usage:
%mm_getwebappsrvprops(outds= some_ds) %mm_getwebappsrvprops(outds= some_ds)
data _null_; data _null_;
@@ -8309,7 +8311,7 @@ libname _XML_ clear;
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -8433,7 +8435,7 @@ filename __shake clear;
Usage: Usage:
%* import the macros (or make them available some other way); %* import the macros (or make them available some other way);
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* create sample text file as input to the macro; %* create sample text file as input to the macro;
@@ -8555,7 +8557,7 @@ run;
Usage: Usage:
%* load macros; %* load macros;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* export everything; %* export everything;
@@ -9359,7 +9361,7 @@ run;
Usage: Usage:
%* import the macros (or make them available some other way); %* import the macros (or make them available some other way);
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* create sample text file as input to the macro; %* create sample text file as input to the macro;
@@ -9457,7 +9459,7 @@ run;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -9597,7 +9599,7 @@ options noquotelenmax;
@details Code is passed in as one or more filerefs. @details Code is passed in as one or more filerefs.
%* Step 1 - compile macros ; %* Step 1 - compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* Step 2 - Create some code and add it to a web service; %* Step 2 - Create some code and add it to a web service;
@@ -9648,7 +9650,7 @@ options noquotelenmax;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/
@@ -10248,7 +10250,7 @@ run;
@details If not executed in Studio 5+ will expect oauth token in a global @details If not executed in Studio 5+ will expect oauth token in a global
macro variable (default ACCESS_TOKEN). macro variable (default ACCESS_TOKEN).
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mv_createwebservice(path=/Public/test, name=blah) %mv_createwebservice(path=/Public/test, name=blah)
@@ -10265,7 +10267,7 @@ run;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -10399,7 +10401,7 @@ libname &libref1a clear;
@details If not executed in Studio 5+ will expect oauth token in a global @details If not executed in Studio 5+ will expect oauth token in a global
macro variable (default ACCESS_TOKEN). macro variable (default ACCESS_TOKEN).
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mv_createwebservice(path=/Public/test, name=blah) %mv_createwebservice(path=/Public/test, name=blah)
@@ -10415,7 +10417,7 @@ libname &libref1a clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -10560,7 +10562,7 @@ libname &libref1a clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -10689,7 +10691,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mv_tokenrefresh.sas @li mv_tokenrefresh.sas
@@ -10721,7 +10723,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mv_registerclient.sas @li mv_registerclient.sas
@@ -10746,7 +10748,7 @@ libname &libref1 clear;
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -10770,7 +10772,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -10857,7 +10859,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -10960,7 +10962,7 @@ libname &libref1 clear;
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
Now we can run the macro! Now we can run the macro!
@@ -10985,7 +10987,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11066,7 +11068,7 @@ filename &fname1 clear;
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -11090,7 +11092,7 @@ filename &fname1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11161,7 +11163,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mv_tokenauth.sas @li mv_tokenauth.sas
@@ -11196,7 +11198,7 @@ libname &libref1 clear;
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -11220,7 +11222,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11297,7 +11299,7 @@ libname &libref1 clear;
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -11339,7 +11341,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11419,7 +11421,7 @@ libname &libref1 clear;
Usage: Usage:
%* compile macros; %* compile macros;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* specific client with just openid scope; %* specific client with just openid scope;
@@ -11460,7 +11462,7 @@ libname &libref1 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11657,7 +11659,7 @@ libname &libref clear;
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
@@ -11683,7 +11685,7 @@ libname &libref clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas
@@ -11826,7 +11828,7 @@ filename &fref2 clear;
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -1,5 +1,5 @@
/** /**
@file mf_getplatform @file mf_getplatform.sas
@brief Returns platform specific variables @brief Returns platform specific variables
@details Enables platform specific variables to be returned @details Enables platform specific variables to be returned

View File

@@ -7,7 +7,7 @@
Usage: Usage:
%* compile macros ; %* compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* write some code; %* write some code;

View File

@@ -179,7 +179,7 @@ data _null_;
put '/*******************************************************************'; put '/*******************************************************************';
put " Datalines for %upcase(%scan(&base_ds,2)) dataset "; put " Datalines for %upcase(%scan(&base_ds,2)) dataset ";
put " Generated by %nrstr(%%)mp_ds2cards()"; put " Generated by %nrstr(%%)mp_ds2cards()";
put " Available on github.com/macropeople/macrocore"; put " Available on github.com/sasjs/core";
put '********************************************************************/'; put '********************************************************************/';
put "data &tgt_ds &indexes;"; put "data &tgt_ds &indexes;";
put "attrib "; put "attrib ";

View File

@@ -29,7 +29,7 @@
@version 9.3 @version 9.3
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -11,7 +11,7 @@
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_guesspk(sashelp.class,outds=classpks) %mp_guesspk(sashelp.class,outds=classpks)

View File

@@ -22,7 +22,8 @@
run; run;
If you are building web apps with SAS then you are strongly encouraged to use If you are building web apps with SAS then you are strongly encouraged to use
the mX_createwebservice macros in combination with [sasjs](https://github.com/macropeople/sasjs). the mX_createwebservice macros in combination with the
[sasjs adapter](https://github.com/sasjs/adapter).
For more information see https://sasjs.io For more information see https://sasjs.io
@param action Valid values: @param action Valid values:
@@ -43,7 +44,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -16,7 +16,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -37,7 +37,7 @@
@version 9.3 @version 9.3
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -17,7 +17,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -28,7 +28,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -6,7 +6,7 @@
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt) %mp_streamfile(contenttype=csv,inloc=/some/where.txt,outname=myfile.txt)
@@ -20,7 +20,7 @@
@param outname= the name of the file, as downloaded by the browser @param outname= the name of the file, as downloaded by the browser
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -7,7 +7,7 @@
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mp_unzip(ziploc="/some/file.zip",outdir=/some/folder) %mp_unzip(ziploc="/some/file.zip",outdir=/some/folder)
@@ -21,7 +21,7 @@
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -23,7 +23,7 @@
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -69,17 +69,17 @@ header="""
'included' in SAS with just 2 lines of code: 'included' in SAS with just 2 lines of code:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
The `build.py` file in the https://github.com/macropeople/macrocore repo The `build.py` file in the https://github.com/sasjs/core repo
is used to create this file. is used to create this file.
@author Allan Bowe @author Allan Bowe
**/ **/
options noquotelenmax; options noquotelenmax;
""" """
f = open('mc_all.sas', "w") # r / r+ / rb / rb+ / w / wb f = open('all.sas', "w") # r / r+ / rb / rb+ / w / wb
f.write(header) f.write(header)
folders=['base','meta','metax','viya','lua'] folders=['base','meta','metax','viya','lua']
for folder in folders: for folder in folders:

View File

@@ -28,8 +28,8 @@ echo "INPUT+=main.dox" >> $BUILD_FOLDER/Doxyfile
doxygen Doxyfile doxygen Doxyfile
# refresh github pages site # refresh github pages site
git clone git@github.com:macropeople/macrocore.github.io.git git clone git@github.com:sasjs/core.github.io.git
cd macrocore.github.io cd core.github.io
git rm -r * git rm -r *
mv $BUILD_FOLDER/out/doxy/* . mv $BUILD_FOLDER/out/doxy/* .
echo 'core.sasjs.io' > CNAME echo 'core.sasjs.io' > CNAME
@@ -37,4 +37,4 @@ git add *
git commit -m "build.sh build on $(date +%F:%H:%M:%S)" git commit -m "build.sh build on $(date +%F:%H:%M:%S)"
git push git push
echo "check it out: https://macropeople.github.io/macrocore.github.io/files.html" echo "check it out: https://sasjs.github.io/core.github.io/files.html"

View File

@@ -2,7 +2,7 @@
<li class="footer"><b>$generatedby</b> <li class="footer"><b>$generatedby</b>
<a href="http://www.doxygen.org/index.html"> <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> <img class="footer" src="doxygen.png" alt="doxygen"/></a>
<i> For more information visit the </i> <a href="https://github.com/macropeople/macrocore">macropeople MacroCore library</a>.</li> <i> For more information visit the </i> <a href="https://github.com/sasjs/core">Macro Core library</a>.</li>
</ul> </ul>
</div> </div>
@@ -10,7 +10,7 @@
<!--BEGIN !GENERATE_TREEVIEW--> <!--BEGIN !GENERATE_TREEVIEW-->
<hr class="footer"/> <hr class="footer"/>
<table width="100%"><tbody><tr><td> <table width="100%"><tbody><tr><td>
For more information visit the <a href="https://github.com/macropeople/macrocore">macropeople MacroCore library</a>. For more information visit the <a href="https://github.com/sasjs/core">Macro Core library</a>.
</td><td><address class="footer"><small> </td><td><address class="footer"><small>
&copy;$year<br/> &copy;$year<br/>
$generatedby <a href="http://www.doxygen.org/index.html"> $generatedby <a href="http://www.doxygen.org/index.html">

View File

@@ -45,8 +45,8 @@ $extrastylesheet
<td> <td>
<table style="padding-left: 2em;" cellspacing="0" cellpadding="0"> <table style="padding-left: 2em;" cellspacing="0" cellpadding="0">
<tr><td> Production Ready Macros for SAS Application Developers</td></tr> <tr><td> Production Ready Macros for SAS Application Developers</td></tr>
<tr><td><a href="https://github.com/macropeople/macrocore"> <tr><td><a href="https://github.com/sasjs/core">
https://github.com/macropeople/macrocore https://github.com/sasjs/core
</a></td></tr> </a></td></tr>
</table> </table>
</td> </td>

View File

@@ -1,6 +1,6 @@
/** \dir . /** \dir .
* \brief Open Source Macro Library for Developers of the SAS Language. See: https://github.com/macropeople/macrocore * \brief Open Source Macro Library for Developers of the SAS Language. See: https://github.com/sasjs/core
* \details To use - add the subfolders to your `SASAUTOS` call path. * \details To use - add the subfolders to your `SASAUTOS` call path.
*/ */

View File

@@ -13,10 +13,10 @@ cat > $OUTFILE <<'EOL'
'included' in SAS with just 2 lines of code: 'included' in SAS with just 2 lines of code:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/macrocore.sas"; "https://raw.githubusercontent.com/sasjs/core/main/macrocore.sas";
%inc mc; %inc mc;
The `build.sh` file in the https://github.com/macropeople/macrocore repo The `build.sh` file in the https://github.com/sasjs/core repo
is used to create this file. is used to create this file.
@author Allan Bowe @author Allan Bowe

View File

@@ -1,12 +1,12 @@
/** /**
@file mm_createwebservice.sas @file mm_createwebservice.sas
@brief Create a Web Ready Stored Process @brief Create a Web Ready Stored Process
@details This macro creates a Type 2 Stored Process with the macropeople @details This macro creates a Type 2 Stored Process with the mm_webout macro
mm_webout macro included as pre-code. included as pre-code.
Usage: Usage:
%* compile macros ; %* compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* parmcards lets us write to a text file from open code ; %* parmcards lets us write to a text file from open code ;

View File

@@ -1,7 +1,8 @@
/** /**
@file @file
@brief Retrieves properties of the SAS web app server @brief Retrieves properties of the SAS web app server
@description usage: @details
Usage:
%mm_getwebappsrvprops(outds= some_ds) %mm_getwebappsrvprops(outds= some_ds)
data _null_; data _null_;
@@ -21,7 +22,7 @@
@version 9.4 @version 9.4
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -12,7 +12,7 @@
Usage: Usage:
%* import the macros (or make them available some other way); %* import the macros (or make them available some other way);
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* create sample text file as input to the macro; %* create sample text file as input to the macro;

View File

@@ -15,7 +15,7 @@
Usage: Usage:
%* load macros; %* load macros;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* export everything; %* export everything;

View File

@@ -8,7 +8,7 @@
Usage: Usage:
%* import the macros (or make them available some other way); %* import the macros (or make them available some other way);
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* create sample text file as input to the macro; %* create sample text file as input to the macro;

View File

@@ -12,6 +12,9 @@
"type": "git", "type": "git",
"url": "https://github.com/sasjs/core" "url": "https://github.com/sasjs/core"
}, },
"release": {
"branches": ["main"]
},
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },

View File

@@ -16,7 +16,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -4,7 +4,7 @@
@details Code is passed in as one or more filerefs. @details Code is passed in as one or more filerefs.
%* Step 1 - compile macros ; %* Step 1 - compile macros ;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* Step 2 - Create some code and add it to a web service; %* Step 2 - Create some code and add it to a web service;
@@ -55,7 +55,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
**/ **/

View File

@@ -4,7 +4,7 @@
@details If not executed in Studio 5+ will expect oauth token in a global @details If not executed in Studio 5+ will expect oauth token in a global
macro variable (default ACCESS_TOKEN). macro variable (default ACCESS_TOKEN).
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mv_createwebservice(path=/Public/test, name=blah) %mv_createwebservice(path=/Public/test, name=blah)
@@ -21,7 +21,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -4,7 +4,7 @@
@details If not executed in Studio 5+ will expect oauth token in a global @details If not executed in Studio 5+ will expect oauth token in a global
macro variable (default ACCESS_TOKEN). macro variable (default ACCESS_TOKEN).
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%mv_createwebservice(path=/Public/test, name=blah) %mv_createwebservice(path=/Public/test, name=blah)
@@ -20,7 +20,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

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

View File

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

View File

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

View File

@@ -6,7 +6,7 @@
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -30,7 +30,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -16,7 +16,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -6,7 +6,7 @@
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
Now we can run the macro! Now we can run the macro!
@@ -31,7 +31,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -6,7 +6,7 @@
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -30,7 +30,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

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

View File

@@ -6,7 +6,7 @@
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -30,7 +30,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -6,7 +6,7 @@
Using the macros here: Using the macros here:
filename mc url filename mc url
"https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
An administrator needs to set you up with an access code: An administrator needs to set you up with an access code:
@@ -48,7 +48,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -12,7 +12,7 @@
Usage: Usage:
%* compile macros; %* compile macros;
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
%* specific client with just openid scope; %* specific client with just openid scope;
@@ -53,7 +53,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -15,7 +15,7 @@
Usage: Usage:
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas"; filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc; %inc mc;
@@ -41,7 +41,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas

View File

@@ -41,7 +41,7 @@
@version VIYA V.03.04 @version VIYA V.03.04
@author Allan Bowe @author Allan Bowe
@source https://github.com/macropeople/macrocore @source https://github.com/sasjs/core
<h4> Dependencies </h4> <h4> Dependencies </h4>
@li mp_abort.sas @li mp_abort.sas