mirror of
https://github.com/SASPAC/sqlinds.git
synced 2025-12-31 11:50:06 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24aa330ce8 | ||
|
|
f999e885db | ||
|
|
9fb14a12dc | ||
|
|
ae8cbe80f1 | ||
|
|
a6559dd7fa | ||
|
|
ae99cd8439 | ||
|
|
079f6ff2fb | ||
|
|
7debd2fc5d |
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## `SQLinDS` - SQL queries in Data Step
|
||||
|
||||
---
|
||||
|
||||
The **SQLinDS** package is based on Mike Rhoads' article [*Use the Full Power of SAS in Your Function-Style Macros*](https://support.sas.com/resources/papers/proceedings12/004-2012.pdf).
|
||||
|
||||
The package allows to write SQL queries in the data step, e.g.
|
||||
```sas
|
||||
data class;
|
||||
set %SQL(select * from sashelp.class order by age);
|
||||
run;
|
||||
```
|
||||
SHA256 digest for the latest version of `SQLinDS`: F*3BB422E8C94515DEE9E13E674A0D119794F464D9597C28D5D536E71F64EB5298
|
||||
|
||||
[**Documentation for SQLinDS**](./sqlinds.md "Documentation for SQLinDS")
|
||||
|
||||
To work with a package use the [**SAS Packages Framework**](https://github.com/yabwon/SAS_PACKAGES/blob/main/README.md "SPFinit").
|
||||
|
||||
BIN
hist/2.2.1/sqlinds.zip
Normal file
BIN
hist/2.2.1/sqlinds.zip
Normal file
Binary file not shown.
BIN
hist/2.2.2/sqlinds.zip
Normal file
BIN
hist/2.2.2/sqlinds.zip
Normal file
Binary file not shown.
BIN
hist/2.2.3/sqlinds.zip
Normal file
BIN
hist/2.2.3/sqlinds.zip
Normal file
Binary file not shown.
BIN
hist/2.2.4/sqlinds.zip
Normal file
BIN
hist/2.2.4/sqlinds.zip
Normal file
Binary file not shown.
BIN
hist/2.2.5/sqlinds.zip
Normal file
BIN
hist/2.2.5/sqlinds.zip
Normal file
Binary file not shown.
BIN
hist/2.2.6/sqlinds.zip
Normal file
BIN
hist/2.2.6/sqlinds.zip
Normal file
Binary file not shown.
15
sqlinds.md
15
sqlinds.md
@@ -1,4 +1,4 @@
|
||||
- [The SQLinDS package [ver. 2.2]](#sqlinds-package)
|
||||
- [The SQLinDS package](#sqlinds-package)
|
||||
- [Content description](#content-description)
|
||||
* [library `dsSQL`](#library-dssql)
|
||||
* [`%dsSQL_inner()` macro](#dssql-inner-macro)
|
||||
@@ -8,16 +8,19 @@
|
||||
|
||||
---
|
||||
|
||||
# The SQLinDS package [ver. 2.2] <a name="sqlinds-package"></a> ###############################################
|
||||
# The SQLinDS package [ver. 2.2.6] <a name="sqlinds-package"></a> ###############################################
|
||||
|
||||
The **SQLinDS** package is an implementation of
|
||||
the *macro-function-sandwich* concept introduced in the
|
||||
*"Use the Full Power of SAS in Your Function-Style Macros"*,
|
||||
the article by *Mike Rhoads (Westat, Rockville)*.
|
||||
|
||||
Copy of the article is available at:
|
||||
The article is available at:
|
||||
[https://support.sas.com/resources/papers/proceedings12/004-2012.pdf](https://support.sas.com/resources/papers/proceedings12/004-2012.pdf)
|
||||
|
||||
Copy of the article can also be found in *additional content* directory.
|
||||
|
||||
|
||||
Package provides ability to *execute* SQL queries inside a data step, e.g.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
data class;
|
||||
@@ -46,10 +49,10 @@ Package contains:
|
||||
Required SAS Components:
|
||||
*Base SAS Software*
|
||||
|
||||
*SAS package generated by generatePackage, version 20220830*
|
||||
*SAS package generated by generatePackage, version 20230411*
|
||||
|
||||
The SHA256 hash digest for package SQLinDS:
|
||||
`96D0EFE02DF1AE0D7D875A10CAF7EF63CDEF85DD0CF9418934BEFAF0C067D453`
|
||||
`F*3BB422E8C94515DEE9E13E674A0D119794F464D9597C28D5D536E71F64EB5298`
|
||||
|
||||
---
|
||||
# Content description ############################################################################################
|
||||
@@ -96,6 +99,8 @@ Based on the article *"Use the Full Power of SAS in Your Function-Style Macros"*
|
||||
by *Mike Rhoads* (Westat, Rockville), available at:
|
||||
[https://support.sas.com/resources/papers/proceedings12/004-2012.pdf](https://support.sas.com/resources/papers/proceedings12/004-2012.pdf)
|
||||
|
||||
Copy of the article can also be found in *additional content* directory.
|
||||
|
||||
### SYNTAX: ###################################################################
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||
%sql(<nonempty sql querry code>)
|
||||
|
||||
BIN
sqlinds.zip
BIN
sqlinds.zip
Binary file not shown.
Reference in New Issue
Block a user