BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wpdonders
Calcite | Level 5

At my department, we have configured SAS server (SASApp), to have File navigation set to a specific path (let's say: "P:/path"). Hence, in EG, after connecting to the server profile, the Files section under the SASApp server shows the folders under P:/path. This path contains a project folder "Project", which contains a SAS script (e.g. "P:/path/Project/script.sas"). The project folder also contains a git repository (e.g. "P:/path/Project/.git"), which tracks the changes to script.sas. Using the command line, I can do all my git work.

 

I expected that when I am editing and running the script through EG, it would be able to detect any changes, show the history and commit the changes using the buttons in the editing window. However, pressing any of these buttons yields the error message "Program History Unavailable: The current program is nto contained within a GIT repository. To use this feature please embed the program or move it to an extern GIT repository."

 

Strangely, these buttons do work when I open an external script that is located on a different networked drive (e.g. "S:/otherpath/otherproject/otherscript.sas") which is not located in the Files section under the SASApp server, but which I can access via File --> Open --> Program.

 

Any ideas what is going wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Alas, EG does not detect a Git repo on a remote SAS server.  It works only with cloned repos that you've got stored locally on your Windows machine (or a Windows network location accessed from your local machine).

 

The workaround would be to use Git to clone the repo onto your local machine instead of accessing via the Files node on the SASApp server.  Not ideal, I know.  I think that R&D has improvements on their to-do list and that @CaseySmith (R&D lead for EG) has commented on this before.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

3 REPLIES 3
ChrisHemedinger
Community Manager

Alas, EG does not detect a Git repo on a remote SAS server.  It works only with cloned repos that you've got stored locally on your Windows machine (or a Windows network location accessed from your local machine).

 

The workaround would be to use Git to clone the repo onto your local machine instead of accessing via the Files node on the SASApp server.  Not ideal, I know.  I think that R&D has improvements on their to-do list and that @CaseySmith (R&D lead for EG) has commented on this before.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
wpdonders
Calcite | Level 5

It's unfortunate my desired workflow is not supported, but thanks for the fast reply.

CaseySmith
SAS Employee

Chris is correct.  And yes, we do have plans to add support for this scenario in a future release.


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 2309 views
  • 0 likes
  • 3 in conversation