-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
312 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "14a71cf0-4339-4ae6-982d-7dda15f3810e", | ||
"metadata": {}, | ||
"source": [ | ||
"# SAS Notebooks with jupytext" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "47346888-e79f-4205-82fd-3a5fdfde9b4d", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"proc sql;\n", | ||
" select *\n", | ||
" from sashelp.cars (obs=10)\n", | ||
" ;\n", | ||
"quit; " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "c96b0faf-26fe-4245-a1d9-78dee30b19c3", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%let name = \"Jupytext\";" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "56cafffb-e397-4c3b-97ab-c6970149b6bc", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%put &name;" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "bbc273c9-8690-450d-bd9b-2d075d512437", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"/* Note when defining macros \"%macro\" cannot be the first line of text in the cell */\n", | ||
"%macro test;\n", | ||
" data temp;\n", | ||
" set sashelp.cars;\n", | ||
" name = \"testx\";\n", | ||
" run; \n", | ||
" proc print data = temp (obs=10);\n", | ||
" run; \n", | ||
"%mend test;\n", | ||
"\n", | ||
"%test" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "SAS", | ||
"language": "sas", | ||
"name": "sas" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": "sas", | ||
"file_extension": ".sas", | ||
"mimetype": "text/x-sas", | ||
"name": "sas" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: SAS | ||
language: sas | ||
name: sas | ||
--- | ||
|
||
# SAS Notebooks with jupytext | ||
|
||
```{sas} | ||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
``` | ||
|
||
```{sas} | ||
%let name = "Jupytext"; | ||
``` | ||
|
||
```{sas} | ||
%put &name; | ||
``` | ||
|
||
```{sas} | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
%test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* --- */ | ||
/* jupyter: */ | ||
/* kernelspec: */ | ||
/* display_name: SAS */ | ||
/* language: sas */ | ||
/* name: sas */ | ||
/* --- */ | ||
|
||
/* %% [markdown] */ | ||
/* # SAS Notebooks with jupytext */ | ||
|
||
/* %% */ | ||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
|
||
/* %% */ | ||
%let name = "Jupytext"; | ||
|
||
/* %% */ | ||
%put &name; | ||
|
||
/* %% */ | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
|
||
%test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
jupyter: | ||
kernelspec: | ||
display_name: SAS | ||
language: sas | ||
name: sas | ||
--- | ||
|
||
# SAS Notebooks with jupytext | ||
|
||
```sas | ||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
``` | ||
|
||
```sas | ||
%let name = "Jupytext"; | ||
``` | ||
|
||
```sas | ||
%put &name; | ||
``` | ||
|
||
```sas | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
%test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
kernelspec: | ||
display_name: SAS | ||
language: sas | ||
name: sas | ||
--- | ||
|
||
# SAS Notebooks with jupytext | ||
|
||
```{code-cell} | ||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
``` | ||
|
||
```{code-cell} | ||
%let name = "Jupytext"; | ||
``` | ||
|
||
```{code-cell} | ||
%put &name; | ||
``` | ||
|
||
```{code-cell} | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
%test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* --- */ | ||
/* jupyter: */ | ||
/* kernelspec: */ | ||
/* display_name: SAS */ | ||
/* language: sas */ | ||
/* name: sas */ | ||
/* --- */ | ||
|
||
/* %% [markdown] */ | ||
/* # SAS Notebooks with jupytext */ | ||
|
||
/* %% */ | ||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
|
||
/* %% */ | ||
%let name = "Jupytext"; | ||
|
||
/* %% */ | ||
%put &name; | ||
|
||
/* %% */ | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
|
||
%test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* --- */ | ||
/* jupyter: */ | ||
/* kernelspec: */ | ||
/* display_name: SAS */ | ||
/* language: sas */ | ||
/* name: sas */ | ||
/* --- */ | ||
|
||
/* # SAS Notebooks with jupytext */ | ||
|
||
proc sql; | ||
select * | ||
from sashelp.cars (obs=10) | ||
; | ||
quit; | ||
|
||
%let name = "Jupytext"; | ||
|
||
%put &name; | ||
|
||
/* + | ||
/* Note when defining macros "%macro" cannot be the first line of text in the cell */ | ||
%macro test; | ||
data temp; | ||
set sashelp.cars; | ||
name = "testx"; | ||
run; | ||
proc print data = temp (obs=10); | ||
run; | ||
%mend test; | ||
|
||
%test |