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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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