You can run SAS code in an R Markdown program. You need a local license to SAS, and the code is a bit obtuse, but this is a nice option if you already know R and just want to include a bit of SAS code here and there.

Hemken, Doug. SAS Using R Markdown (Windows). Available in html format.

This Recommendation was added to the website on 2019-06-05 and was last modified on 2020-02-04. You can find similar pages at R programming, SAS programming.