BookmarkSubscribeRSS Feed
Swethajava23
Calcite | Level 5

An issue where we are seeing saved SAS codes getting cleared or emptied on a random basis

We are using SAS EG7.1. SAS codes resides in LINUX platform(server)


 

7 REPLIES 7
Kurt_Bremser
Super User

I have observed that, if a server connection crashes while Enterprise Guide has a project file opened (that is stored on the server), the project file may be damaged (empty, size zero).

But I never had problems with .sas files, as those are simple text.

I therefore recommend to store projects locally (while working on them) and make occasional copies to the server.

SASKiwi
PROC Star

How do you save your SAS programs to your linux server from EG? Do a File Save in EG via a network share or by some other means?

Swethajava23
Calcite | Level 5
The users create symbolic links to the Linux directory where the codes reside to access/manage the codes from Enterprise Guide. The users use x command functionality to run different Linux commands on the server from SAS programs from Enterprise Guide.
For users to access codes and datasets in linux server from SAS EG they create the symbolic links to the path they reside.
They use x command for that. Syntax:
x "ln -s < PATH WHERE CODES and DATSET RESIDE> <USER HOME DIRECTORY IN SERVER/LINK NAME>";
Kurt_Bremser
Super User

For shared codes, I strongly recommend to use a versioning control system instead of just editing the codes in place. Your problems might come from concurrent accesses to files.

Swethajava23
Calcite | Level 5

Thanks for reply.

 

Can you also let me know, how to implement versioning control system for shared codes.

 

 

Kurt_Bremser
Super User

There is a universe of VCS's out there: https://en.wikipedia.org/wiki/List_of_version_control_software

 

What suits your needs must be decided upon in your organisation.

 

I'm not one who runs the VCS, I just use it. And ours is mainframe-based at the moment.

ChrisHemedinger
Community Manager

SAS Enterprise Guide has integrated support for Git, including repositories like Github.  See this blog post for some more details.

 

Aside from Git integration, you can use standard source control systems with file-system integration along side SAS and SAS Enterprise Guide.  Here's another article about that.

 

 

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!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 7 replies
  • 2212 views
  • 0 likes
  • 4 in conversation