The SQLinDS package [ver. 2.4.0]

The SQLinDS package [ver. 2.4.0]

You can use Proc SQL to populate hash table. Call to `%SQL()` has to be in double-quotes.

- File SHA256: `F*A3DC9400DEF1403DC9E191611790244A8B0FB23303D3A98D29777E46A1D4E8B4` for this version
- Content SHA256: `C*4A49F365C4EF8C5523393FDC1E11C344B023F449B3F1759BA27CFC6C1293A499` for this version
This commit is contained in:
Bart Jablonski
2026-05-11 14:37:38 +02:00
parent 9025c055a5
commit eedef6b845
5 changed files with 303 additions and 12 deletions
+27 -11
View File
@@ -9,17 +9,17 @@
### Version information:
- Package: SQLinDS
- Version: 2.3.3
- Generated: 2026-02-17T08:25:24
- Version: 2.4.0
- Generated: 2026-05-11T14:15:07
- Author(s): Mike Rhoads (RhoadsM1@Westat.com), contributor Bartosz Jablonski
- Maintainer(s): Bartosz Jablonski (yabwon@gmail.com)
- License: MIT
- File SHA256: `F*6CC51325BDCE164B2E811896DD1C3A6D44242F50CC313D0721350CA49975F628` for this version
- Content SHA256: `C*776741E40EB6DCD907640ACA674F092BFAF0F7DE031519B6B453D37F6D6959D9` for this version
- File SHA256: `F*A3DC9400DEF1403DC9E191611790244A8B0FB23303D3A98D29777E46A1D4E8B4` for this version
- Content SHA256: `C*4A49F365C4EF8C5523393FDC1E11C344B023F449B3F1759BA27CFC6C1293A499` for this version
---
# The `SQLinDS` package, version: `2.3.3`;
# The `SQLinDS` package, version: `2.4.0`;
---
@@ -75,9 +75,9 @@ localization (only if additional content was deployed during the installation pr
---------------------------------------------------------------------
*SAS package generated by SAS Package Framework, version `20260216`,*
*SAS package generated by SAS Package Framework, version `20260411`,*
*under `WIN`(`X64_10PRO`) operating system,*
*using SAS release: `9.04.01M9P06042025`.*
*using SAS release: `9.04.01M9P06052025`.*
---------------------------------------------------------------------
@@ -155,18 +155,18 @@ Copy of the article can also be found in *additional content* directory.
%sql(<nonempty Proc SQL query code>)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The THE query code is limited to approximately *32000* bytes.
The query code is limited to approximately *32000* bytes.
### EXAMPLES: #################################################################
**EXAMPLE 1**: simple SQL query
**EXAMPLE 1**: A simple SQL query.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
data class_subset;
set %SQL(select name, sex, height from sashelp.class where age > 12);
run;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**EXAMPLE 2**: query with dataset options
**EXAMPLE 2**: A query with dataset options.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
data renamed;
set %SQL(select name, age from sashelp.class
@@ -175,12 +175,28 @@ data renamed;
run;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**EXAMPLE 3**: Proc SQL dictionaries in the data step
**EXAMPLE 3**: Proc SQL dictionaries in the data step.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
data dictionary;
set %SQL(select dict.* from dictionary.macros as dict);
run;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**EXAMPLE 4**: Use Proc SQL to populate hash table.
Call to `%SQL()` has to be in double-quotes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
data _null_;
if 0 then set %SQL(SELECT name, age FROM sashelp.class);
declare hash H (dataset: "%SQL(SELECT name, age FROM sashelp.class)") ;
H.defineKey("age");
H.defineKey("name");
H.defineDone();
H.output(dataset:"output");
stop;
run;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---