mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2025-12-11 11:14:35 +00:00
**SAS Packages Framework**, version 20210528:
Help tags selection modified in the `%generatePackage()` macro.
New solution allows to write help tags surrounding comments in two ways.
The first (old) is:
```
/*** HELP START ***/
/*
comment
*/
/*** HELP END ***/
```
and the second (new):
```
/*** HELP START ***//*
comment
*//*** HELP END ***/
```
The second allows to print help info in log without `/*` and `*/` surrounding comments. It looks better and is easier for building `.md` files or other help documents (so you do not have to remove `/*` by hand).
Documentation updated.
The following packages were regenerated with new version of the SPF:
- BasePlus
- DFA
- dynMacroArray
- macroArray
- SQLinDS
32 lines
1.1 KiB
SAS
32 lines
1.1 KiB
SAS
/*** HELP START ***//*
|
|
|
|
## >>> library `dsSQL`: <<< <a name="library-dssql"></a> ########################
|
|
|
|
The `dsSQL` library stores temporary views
|
|
generated during the `%SQL()` macro execution.
|
|
|
|
If possible a subdirectory of the `WORK` location is created, like:
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
|
LIBNAME dsSQL BASE "%sysfunc(pathname(WORK))/dsSQLtmp";
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
if not possible, then redirects to the `WORK` location, like:
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
|
LIBNAME dsSQL BASE "%sysfunc(pathname(WORK))";
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
---
|
|
|
|
*//*** HELP END ***/
|
|
|
|
data _null_;
|
|
length rc0 $ 32767 rc1 rc2 8;
|
|
rc0 = DCREATE("dsSQLtmp", "%sysfunc(pathname(work))/" );
|
|
rc1 = LIBNAME("dsSQL", "%sysfunc(pathname(work))/dsSQLtmp", "BASE");
|
|
rc2 = LIBREF ("dsSQL" );
|
|
if rc2 NE 0 then
|
|
rc1 = LIBNAME("dsSQL", "%sysfunc(pathname(work))", "BASE");
|
|
run;
|
|
|
|
/* list the details about the library in the log */
|
|
libname dsSQL LIST;
|