Desktop productivity for business analysts and programmers

SAS codes getting cleared or emptied

Reply
Occasional Contributor
Posts: 13

SAS codes getting cleared or emptied

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)


 

Super User
Posts: 7,422

Re: SAS codes getting cleared or emptied

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 3,233

Re: SAS codes getting cleared or emptied

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?

Occasional Contributor
Posts: 13

Re: SAS codes getting cleared or emptied

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>";
Super User
Posts: 7,422

Re: SAS codes getting cleared or emptied

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 13

Re: SAS codes getting cleared or emptied

Thanks for reply.

 

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

 

 

Super User
Posts: 7,422

Re: SAS codes getting cleared or emptied

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Community Manager
Posts: 2,889

Re: SAS codes getting cleared or emptied

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.

 

 

Ask a Question
Discussion stats
  • 7 replies
  • 368 views
  • 0 likes
  • 4 in conversation