BookmarkSubscribeRSS Feed
AllanBowe
Barite | Level 11
Spoiler
SAS Studio - Autoexec

Your SAS Studio instance has an autoexec - this is a place for code that will run automatically at the start of your session.  Just choose Options / Autoexec File and paste your code into the window.

 

What to put there?

 

Well you could add these two lines of code and make the entire sasjs/core library available to your session!

 

filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;


You might also put your hackathon specific setup scripts and macro variables there, so that they are always active when reloading your session.

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
2 REPLIES 2
sbxkoenk
SAS Super FREQ

Thanks @AllanBowe ,

 

I require "my" team ( @SomnathP ) to include this in their autoexec. 😉

If they are looking for documentation on this MacroCore library

, is this the best place to send them to : https://sasjs.io/sasjs-core/ ??

 

Also a tip for my co-mentor : @surajkamath 

 

See also here :

SAS open-source treasures from around the world: SASjs
By Leonid Batkhan on SAS Users February 16, 2022
https://blogs.sas.com/content/sgf/2022/02/16/sas-open-source-treasures-from-around-the-world-sasjs/

 

Thanks,

Koen

AllanBowe
Barite | Level 11
Hi Koen!

The macros are documented directly, here: https://core.sasjs.io

In coming tips we'll show how they can be compiled into Jobs and Services (and Tests), and deployed to SAS Viya 4 using the REST APIs, from the comfort of VS-Code

Best,
Allan
/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Celebrate the 2025 SAS Hackathon

Watch the 2025 SAS Hackathon Awards Ceremony and experience the excitement all over again!

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2102 views
  • 16 likes
  • 2 in conversation