BookmarkSubscribeRSS Feed
cm2020
Calcite | Level 5

Currently I have a pre-commit git hook that works if I use the CLI to commit to my git repo. Is there a way to make it work in SAS Studio?

2 REPLIES 2
Tom
Super User Tom
Super User

@cm2020 wrote:

Currently I have a pre-commit git hook that works if I use the CLI to commit to my git repo. Is there a way to make it work in SAS Studio?


If your SAS installation allows you to run operating system commands there shouldn't be any reason why you shouldn't be able to run the command line from the SAS code you submit to run even if you are using SAS/Studio to submit.

 

data _null_;
  infile "what ever command you use to commit" pipe;
  input;
  put _infile_;
run;
SASKiwi
PROC Star

Have you looked at the GIT functions in SAS? Whether these are available to you will depend on your SAS maintenance level.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 990 views
  • 0 likes
  • 3 in conversation