| 1 |
--- |
| 2 |
kernelspec: |
| 3 |
display_name: SAS |
| 4 |
language: sas |
| 5 |
name: sas |
| 6 |
--- |
| 7 |
|
| 8 |
# SAS Notebooks with jupytext |
| 9 |
|
| 10 |
```{code-cell} |
| 11 |
proc sql; |
| 12 |
select * |
| 13 |
from sashelp.cars (obs=10) |
| 14 |
; |
| 15 |
quit; |
| 16 |
``` |
| 17 |
|
| 18 |
```{code-cell} |
| 19 |
%let name = "Jupytext"; |
| 20 |
``` |
| 21 |
|
| 22 |
```{code-cell} |
| 23 |
%put &name; |
| 24 |
``` |
| 25 |
|
| 26 |
```{code-cell} |
| 27 |
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ |
| 28 |
%macro test; |
| 29 |
data temp; |
| 30 |
set sashelp.cars; |
| 31 |
name = "testx"; |
| 32 |
run; |
| 33 |
proc print data = temp (obs=10); |
| 34 |
run; |
| 35 |
%mend test; |
| 36 |
|
| 37 |
%test |
| 38 |
``` |