BookmarkSubscribeRSS Feed
Sudhakar_A
Calcite | Level 5
Hi All,

Is there any way to have version control in SAS Programs.

1. An automatic time stamp should be placed in the top of the Program (in header Part) whenever the user changes the code and closing the program from session.

2. In a team anyone can the open the program and do some modification in the absence of the Owner of the program for that we have to include the User name along with the time stamp to identify the person who modified.

3. Suppose in a Project environment anyone can open any program, but if user01 opens and editing the DEMO.SAS program and at the same time user02 wants to open the same program it should be read only for user02.

If possible

4. Is there any way to take the Last modified version of the program for ex: Modified on 01 AUG 2008 4:53 PM or even earlier
4 REPLIES 4
Tim_SAS
Barite | Level 11
I would think that any of the popular version control systems out there would suffice. CVS (http://en.wikipedia.org/wiki/Concurrent_Versions_System) has been around for a long time. Subversion (http://en.wikipedia.org/wiki/Subversion_(software)) is newer but extremely popular. Both are free, have enormous user communities, and are well-documented.
jschaffn
Calcite | Level 5
With CVS, you could include the CVS header and log statements and SAS would recognized them as comments:
/*$Header$*/
/*$Log$*/

Subversion keywords seem to be surrounded by dollar signs, which SAS doesn't seem to recognize as comments:
$ID$
$Revision$

Is there a way for SAS to recognize the Subvervsion keywords as comments?

Thanks in advance
Tim_SAS
Barite | Level 11
Just surround the keywords with comment markers. Subversion will recognize them and do the substitution as always.

/* $Id$ */
/* $Revision$ */

http://svnbook.red-bean.com/en/1.5/svn-book.html
jschaffn
Calcite | Level 5
Great - thank you!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 982 views
  • 0 likes
  • 3 in conversation