mirror of
https://github.com/SASPAC/baseplus.git
synced 2025-12-10 14:34:35 +00:00
95a0f719403bb354107a18ba897473ba8871a27d
## The BasePlus package [ver. 1.42.0] ### Changes: New macro [`%GenerateOneLiners()`](https://github.com/SASPAC/baseplus/blob/1.42.0/baseplus.md#generateoneliners-macro) allowing to generate "one liner" functions of the form: ~~~~sas %macro FUNCTION()/parmbuff; %sysfunc(FUNCTION&syspbuff) %mend FUNCTION; ~~~~ See [documentation](https://github.com/SASPAC/baseplus/blob/main/baseplus.md) for details. --- SHA256 digest for BasePlus: `F*6012D1475AE22A4445C032D8EAE092BE515D8CD2AE390CC087F5987ACB8BCB13` --- ### Example ~~~~sas %GenerateOneLiners( listOfFunctions=SUM MEAN MEDIAN VAR , prefix=_) %put %_SUM(1,2,3,4,5,6) %_MEAN(1,2,3,4,5,6) %_MEDIAN(1,2,3,4,5,6) %_VAR(1,2,3,4,5,6) ; ~~~~
basePlus - The BASE SAS plus a bunch of functionalities I am missing in BASE SAS :-)
The BasePlus package adds a bunch of functionalities I am missing in BASE SAS, such as:
call arrMissToRight(myArray);
call arrFillMiss(17, myArray);
call arrFill(42, myArray);
rc = delDataset("DataSetToDrop");
string = catXFn("date9.", "#", myArray);
format x bool.;
%put %getVars(sashelp.class, pattern = ght$, sep = +, varRange = _numeric_);
%rainCloudPlot(sashelp.cars,DriveTrain,Invoice)
%zipLibrary(sashelp,libOut=work)
%bpPIPE(ls -la ~/)
%dirsAndFiles(C:\SAS_WORK\,ODS=work.result)
%put %repeatTxt(#,15,s=$) HELLO SAS! %repeatTxt(#,15,s=$);
%put %intsList(42);
%put %letters(1:26:1);
%splitDSIntoBlocks(5, sashelp.class, classBlock)
%splitDSIntoParts(7, sashelp.cars, carsPart)
filename f temp;
%put %filePath(f);
%put %libPath(WORK);
libname NEW "%workPath()/new";
%put %translate(%str("A", "B", "C"),%str(%",),%str(%' ));
%put %tranwrd(Miss Joan Smith,Miss,Ms.);
%put %date() %time() %datetime();
%put %date(yymmddn10.) %time(time5.) %datetime(e8601dt.);
%put %monthShift(2023,1,-5);
and more.
SHA256 digest for the latest version of BasePlus: F*6012D1475AE22A4445C032D8EAE092BE515D8CD2AE390CC087F5987ACB8BCB13
To work with a package use the SAS Packages Framework.
Description
Languages
SAS
100%