sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
121 stars 48 forks source link

%include SAS notebooks support on SAS server #1192

Closed nicrobert closed 2 months ago

nicrobert commented 2 months ago

Is your feature request related to a problem? Please describe. I have written a few SAS notebooks that prepare data. The next morning, instead of having to open and run each of them, I want to write a SAS program that run all of them.

Describe the solution you'd like %include "/my/path/dataprep.sasnb" ;

Describe alternatives you've considered

Additional context

Environment SAS Viya Workbench

scnwwu commented 2 months ago

It sounds like not a feature request for this SAS Extension project, but for SAS runtime.

snlwih commented 2 months ago

Closing. This is a feature request for SAS runtime.

cjdinger commented 2 months ago

I put together a simple macro that can accomplish this. Tested briefly but see if it helps with your case.

%includesasnb(filepath=/home/myaccount/my-notebook.sasnb);

https://github.com/sascommunities/sas-dummy-blog/blob/master/includesasnb/includesasnb.sas