mirror of
https://github.com/yabwon/SAS_PACKAGES.git
synced 2026-01-17 19:20:04 +00:00
The SQLinDS package [ver. 2.2.5]
The SQLinDS package [ver. 2.2.5] Mike Rhoads' article "Use the Full Power of SAS in Your Function-Style Macros" added to the additional content for the package.
This commit is contained in:
@@ -176,13 +176,13 @@ If you find the SPF useful **share info** about it or **give it a [star](https:/
|
|||||||
|
|
||||||
Packages:
|
Packages:
|
||||||
|
|
||||||
- **SQLinDS**\[2.2.4\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g.
|
- **SQLinDS**\[2.2.5\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g.
|
||||||
```sas
|
```sas
|
||||||
data class;
|
data class;
|
||||||
set %SQL(select * from sashelp.class order by age);
|
set %SQL(select * from sashelp.class order by age);
|
||||||
run;
|
run;
|
||||||
```
|
```
|
||||||
SHA256 digest for SQLinDS: 42677CEBB0778A6B72DE9C0071B66A345811EE470289E3847D7737F782E709E0
|
SHA256 digest for SQLinDS: F*229ACF1A62E5194A25C75D8E554BEF1B7D29227A498ED5862F23892BB0D57644
|
||||||
|
|
||||||
[Documentation for SQLinDS](https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/sqlinds.md "Documentation for SQLinDS")
|
[Documentation for SQLinDS](https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/sqlinds.md "Documentation for SQLinDS")
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Packages:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- **SQLinDS**\[2.2.4\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g.
|
- **SQLinDS**\[2.2.5\], based on Mike Rhoads' article *Use the Full Power of SAS in Your Function-Style Macros*. The package allows to write SQL queries in the data step, e.g.
|
||||||
```sas
|
```sas
|
||||||
data class;
|
data class;
|
||||||
set %SQL(
|
set %SQL(
|
||||||
@@ -22,7 +22,7 @@ data class;
|
|||||||
WH = weight + height;
|
WH = weight + height;
|
||||||
run;
|
run;
|
||||||
```
|
```
|
||||||
SHA256 digest for SQLinDS: 42677CEBB0778A6B72DE9C0071B66A345811EE470289E3847D7737F782E709E0
|
SHA256 digest for SQLinDS: F*229ACF1A62E5194A25C75D8E554BEF1B7D29227A498ED5862F23892BB0D57644
|
||||||
|
|
||||||
[Documentation for SQLinDS](https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/sqlinds.md "Documentation for SQLinDS")
|
[Documentation for SQLinDS](https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/sqlinds.md "Documentation for SQLinDS")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/* 20230210 */
|
||||||
|
SQLinDS: F*229ACF1A62E5194A25C75D8E554BEF1B7D29227A498ED5862F23892BB0D57644
|
||||||
|
|
||||||
/* 20221215 */
|
/* 20221215 */
|
||||||
BasePlus: A6F1977DC4EC22A39DDC7BCE68CF562AF54351A3D385D488EC3067B5A7C0F3CB
|
BasePlus: A6F1977DC4EC22A39DDC7BCE68CF562AF54351A3D385D488EC3067B5A7C0F3CB
|
||||||
DFA: 6DEB02BE1C30453FBC688AF1F561709C7D6BF10B3B67988B238853A2A9D53034
|
DFA: 6DEB02BE1C30453FBC688AF1F561709C7D6BF10B3B67988B238853A2A9D53034
|
||||||
|
|||||||
@@ -8,16 +8,19 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# The SQLinDS package [ver. 2.2.4] <a name="sqlinds-package"></a> ###############################################
|
# The SQLinDS package [ver. 2.2.5] <a name="sqlinds-package"></a> ###############################################
|
||||||
|
|
||||||
The **SQLinDS** package is an implementation of
|
The **SQLinDS** package is an implementation of
|
||||||
the *macro-function-sandwich* concept introduced in the
|
the *macro-function-sandwich* concept introduced in the
|
||||||
*"Use the Full Power of SAS in Your Function-Style Macros"*,
|
*"Use the Full Power of SAS in Your Function-Style Macros"*,
|
||||||
the article by *Mike Rhoads (Westat, Rockville)*.
|
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)
|
[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.
|
Package provides ability to *execute* SQL queries inside a data step, e.g.
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||||
data class;
|
data class;
|
||||||
@@ -46,10 +49,10 @@ Package contains:
|
|||||||
Required SAS Components:
|
Required SAS Components:
|
||||||
*Base SAS Software*
|
*Base SAS Software*
|
||||||
|
|
||||||
*SAS package generated by generatePackage, version 20221215*
|
*SAS package generated by generatePackage, version 20230207*
|
||||||
|
|
||||||
The SHA256 hash digest for package SQLinDS:
|
The SHA256 hash digest for package SQLinDS:
|
||||||
`42677CEBB0778A6B72DE9C0071B66A345811EE470289E3847D7737F782E709E0`
|
`F*229ACF1A62E5194A25C75D8E554BEF1B7D29227A498ED5862F23892BB0D57644`
|
||||||
|
|
||||||
---
|
---
|
||||||
# Content description ############################################################################################
|
# 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:
|
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)
|
[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: ###################################################################
|
### SYNTAX: ###################################################################
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~sas
|
||||||
%sql(<nonempty sql querry code>)
|
%sql(<nonempty sql querry code>)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user