Compare commits
12 Commits
2.3.0
...
b9d5aac3aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9d5aac3aa | ||
|
|
3b14b9cd3e | ||
|
|
124cc01c3d | ||
|
|
65dc1c510d | ||
|
|
5be733fb98 | ||
|
|
eb43a1be93 | ||
|
|
7ff5b3de09 | ||
|
|
0fab75eda8 | ||
|
|
65dd5ba8cb | ||
|
|
de1de46fbe | ||
|
|
a46a4ea9f6 | ||
|
|
8625e9c364 |
@@ -53,10 +53,12 @@ libname NEW "%workPath()/new";
|
||||
%put %monthShift(2023,1,-5);
|
||||
|
||||
%put #%expandDataSetsList(lib=sashelp,datasets=_all_)#;
|
||||
|
||||
%workLib(ABC)
|
||||
```
|
||||
and more.
|
||||
|
||||
SHA256 digest for the latest version of `BasePlus`: F*71DC1AFA709B2977E8AEA452721776F62EEC8240ABD658AC83AA6D4310FC49B6
|
||||
SHA256 digest for the latest version of `BasePlus`: F*6394CE27FBCF48D475F682CBCF8CA8B4FDD6D40D2672EF571F4A561BDDF274A6
|
||||
|
||||
[**Documentation for BasePlus**](./baseplus.md "Documentation for BasePlus")
|
||||
|
||||
|
||||
114
baseplus.md
@@ -9,22 +9,22 @@
|
||||
### Version information:
|
||||
|
||||
- Package: BasePlus
|
||||
- Version: 2.3.0
|
||||
- Generated: 2025-08-04T14:12:30
|
||||
- Author(s): Bartosz Jablonski (yabwon@gmail.com), Quentin McMullen (qmcmullen@gmail.com)
|
||||
- Version: 3.1.1
|
||||
- Generated: 2025-11-05T15:10:31
|
||||
- Author(s): Bartosz Jablonski (yabwon@gmail.com), contributors are Quentin McMullen (qmcmullen@gmail.com) and Ryo Nakaya (nakaya.ryou@gmail.com)
|
||||
- Maintainer(s): Bartosz Jablonski (yabwon@gmail.com)
|
||||
- License: MIT
|
||||
- File SHA256: `F*71DC1AFA709B2977E8AEA452721776F62EEC8240ABD658AC83AA6D4310FC49B6` for this version
|
||||
- Content SHA256: `C*9CEDE8C64D2C619EBC27AC85B4904D2CE2423C832C6C313E526946FC1417EFD1` for this version
|
||||
- File SHA256: `F*6394CE27FBCF48D475F682CBCF8CA8B4FDD6D40D2672EF571F4A561BDDF274A6` for this version
|
||||
- Content SHA256: `C*3CA28DF8F3E6D6670D7FD44788D347452F24F4BCF18115873E7EBC742FE30CA4` for this version
|
||||
|
||||
---
|
||||
|
||||
# The `BasePlus` package, version: `2.3.0`;
|
||||
# The `BasePlus` package, version: `3.1.1`;
|
||||
|
||||
---
|
||||
|
||||
|
||||
# The BasePlus package [ver. 2.3.0] <a name="baseplus-package"></a> ###############################################
|
||||
# The BasePlus package [ver. 3.1.1] <a name="baseplus-package"></a> ###############################################
|
||||
|
||||
The **BasePlus** package implements useful
|
||||
functions and functionalities I miss in the BASE SAS.
|
||||
@@ -47,7 +47,8 @@ Kudos to all who inspired me to generate this package:
|
||||
*Quentin McMullen*,
|
||||
*Kurt Bremser*,
|
||||
*Leonid Batkhan*,
|
||||
*Louise Hadden*.
|
||||
*Louise Hadden*,
|
||||
*Ryo Nakaya*.
|
||||
|
||||
---
|
||||
|
||||
@@ -387,6 +388,11 @@ proc print data=b_x;
|
||||
run;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**EXAMPLE 29** Create library ABC assigned to `<WORK>/ABC` directory:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
%workLib(abc)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
@@ -403,7 +409,7 @@ localization (only if additional content was deployed during the installation pr
|
||||
|
||||
--------------------------------------------------------------------
|
||||
|
||||
*SAS package generated by SAS Package Framework, version `20250729`*
|
||||
*SAS package generated by SAS Package Framework, version `20251017`*
|
||||
|
||||
--------------------------------------------------------------------
|
||||
|
||||
@@ -490,10 +496,11 @@ The `BasePlus` package consists of the following content:
|
||||
78. [`%translate()` macro ](#translate-macro-78 )
|
||||
79. [`%tranwrd()` macro ](#tranwrd-macro-79 )
|
||||
80. [`%unifyvarscasesize()` macro ](#unifyvarscasesize-macro-80 )
|
||||
81. [`%workpath()` macro ](#workpath-macro-81 )
|
||||
81. [`%worklib()` macro ](#worklib-macro-81 )
|
||||
82. [`%workpath()` macro ](#workpath-macro-82 )
|
||||
|
||||
|
||||
82. [License note](#license)
|
||||
83. [License note](#license)
|
||||
|
||||
---
|
||||
|
||||
@@ -838,6 +845,7 @@ The basic syntax is the following, the `<...>` means optional parameters:
|
||||
<,longFormat=>
|
||||
<,fileExt=>
|
||||
<,maxDepth=>
|
||||
<,backslashSens=>
|
||||
)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -868,6 +876,11 @@ The basic syntax is the following, the `<...>` means optional parameters:
|
||||
* `maxDepth=0` - *Optional*, if not zero then indicates
|
||||
maximum depth of search in the root path.
|
||||
|
||||
* `backslashSens=0` - *Optional*, if not zero then it indicates
|
||||
that backslash(`\`) symbol in files and dirs
|
||||
names is detectable under Linux. Accepted
|
||||
values: `0` and `1`. Ignored under Windows.
|
||||
|
||||
|
||||
### EXAMPLES AND USECASES: ####################################################
|
||||
|
||||
@@ -6016,6 +6029,11 @@ See examples below for the details.
|
||||
|
||||
The `%findDSwithVarVal()` macro does not execute as a pure macro code.
|
||||
|
||||
**NOTE:**
|
||||
When a library is assigned with different engine than:
|
||||
"BASE","SPDE","V6","V7","V8","V9","CVP"
|
||||
observation number is not returned.
|
||||
|
||||
### SYNTAX: ###################################################################
|
||||
|
||||
The basic syntax is the following, the `<...>` means optional parameters:
|
||||
@@ -6650,7 +6668,7 @@ The basic syntax is the following, the `<...>` means optional parameters:
|
||||
|
||||
The letters() macro function allows to print a list of Roman
|
||||
letters starting from `start` up to `end` incremented by `by`.
|
||||
The letters list can be uppercases or lowercase (parameter `c=U` or `c=L`),
|
||||
The letters list can be uppercase or lowercase (parameter `c=U` or `c=L`),
|
||||
can be quoted (e.g. `q=""` or `q=[]`), and can be separated by `s=`.
|
||||
|
||||
Values of `start`, `end`, and `by` have to be integers in range between 1 ad 26.
|
||||
@@ -6678,12 +6696,12 @@ The basic syntax is the following, the `<...>` means optional parameters:
|
||||
Values of `start`, `end`, and `by` are separated by
|
||||
colon and must be between 1 ad 26.
|
||||
If value is outside range it is set to
|
||||
`start=1`, `en=26`, and `by=1`. If `end` is missing
|
||||
then is set to value of `start`.
|
||||
`start=1`, `end=26`, and `by=1`. If `end` is missing
|
||||
then it is set to value of `start`.
|
||||
If `end` is smaller than `start` list is reversed
|
||||
|
||||
* `c = U` - *Optional*, it is a lowercase letters indicator.
|
||||
Select `L` or `l`. Default value is `U` for upcase.
|
||||
Select `L` or `l`. Default value is `U` for uppercase.
|
||||
|
||||
* `q = ` - *Optional*, it is a quite around elements of the list.
|
||||
Default value is empty. Use `%str()` for one quote symbol.
|
||||
@@ -7613,7 +7631,71 @@ run;
|
||||
|
||||
---
|
||||
|
||||
## `%workpath()` macro <a name="workpath-macro-81"></a> ######
|
||||
## `%worklib()` macro <a name="worklib-macro-81"></a> ######
|
||||
|
||||
## >>> `%workLib()` macro: <<< <a name="worklib-macro"></a> #######################
|
||||
|
||||
The `%workLib()` macro creates and assigns a WORK-scoped sub-library.
|
||||
|
||||
Purpose:
|
||||
|
||||
The macro creates (if needed) and assigns a SAS library as a sub-directory
|
||||
under the current `WORK` location. This is useful for isolating temporary
|
||||
outputs per task while ensuring automatic cleanup at the end of the SAS session.
|
||||
Basic engines libraries, like `BASE`, `V*`, and simple `SPDE`, can be set.
|
||||
|
||||
### SYNTAX: ###################################################################
|
||||
|
||||
The basic syntax is the following, the `<...>` means optional parameters:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
%workLib(lib,<engine>)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Arguments description**:
|
||||
|
||||
- `lib` - *Required*: Name of a library (and sub-folder)
|
||||
to create under WORK. The value must be a valid
|
||||
nonempty SAS libref (8 characters max, starting
|
||||
with a letter or underscore).
|
||||
|
||||
- `engine` - *Optional*, Name of a basic, directory level,
|
||||
SAS engine, e.g. `BASE`. When empty the default
|
||||
engine is used.
|
||||
---
|
||||
|
||||
### Details
|
||||
|
||||
- Builds a target path: `<WORK>/<lib>`.
|
||||
- All data written to this libref are temporary and will be removed
|
||||
when the WORK library is cleared at session end.
|
||||
- If a directory with the same name already exists under WORK,
|
||||
the macro prints a note and simply assigns the LIBNAME to
|
||||
that location.
|
||||
- The `dcreate()` function is used to create sub-directory.
|
||||
|
||||
|
||||
### EXAMPLES AND USECASES: ####################################################
|
||||
|
||||
**EXAMPLE 1.** Create library ABC assigned to `<WORK>/ABC` directory:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
%workLib(abc)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**EXAMPLE 2.** Create libraries with different engines:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
%workLib(b,BASE)
|
||||
|
||||
%workLib(v,V6) %* for Windows only.;
|
||||
|
||||
%workLib(s,SPDE)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
---
|
||||
|
||||
|
||||
---
|
||||
|
||||
## `%workpath()` macro <a name="workpath-macro-82"></a> ######
|
||||
|
||||
## >>> `%workPath()` macro: <<< <a name="workpath-macro"></a> #######################
|
||||
|
||||
|
||||
BIN
baseplus.zip
7680
hist/2.3.1/baseplus.md
Normal file
BIN
hist/2.3.1/baseplus.zip
Normal file
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex0.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex1x.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex1y.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex2a.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex2b.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex3.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
hist/2.3.1/baseplus_RainCloudPlot_Ex4.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
7686
hist/2.4.0/baseplus.md
Normal file
BIN
hist/2.4.0/baseplus.zip
Normal file
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex0.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex1x.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex1y.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex2a.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex2b.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex3.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
hist/2.4.0/baseplus_RainCloudPlot_Ex4.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
7686
hist/2.4.1/baseplus.md
Normal file
BIN
hist/2.4.1/baseplus.zip
Normal file
7757
hist/3.0.0/baseplus.md
Normal file
BIN
hist/3.0.0/baseplus.zip
Normal file
7762
hist/3.1.0/baseplus.md
Normal file
BIN
hist/3.1.0/baseplus.zip
Normal file
7762
hist/3.1.1/baseplus.md
Normal file
BIN
hist/3.1.1/baseplus.zip
Normal file
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex0.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex1x.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex1y.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex2a.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex2b.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex3.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
hist/3.1.1/baseplus_RainCloudPlot_Ex4.png
Normal file
|
After Width: | Height: | Size: 54 KiB |