15.7 Run SAS code
You may run SAS (https://www.sas.com) code using the sas
engine. You need to either make sure the SAS executable is in your environment variable PATH
, or (if you do not know what PATH
means) provide the full path to the SAS executable via the chunk option engine.path
, e.g., engine.path = "C:\\Program Files\\SASHome\\x86\\SASFoundation\\9.3\\sas.exe"
. Below is an example to print out “Hello World”:
```{sas}
data _null_;
put 'Hello, world!';
run;
```
当前内容版权归 Chapman & Hall/CRC 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Chapman & Hall/CRC .