DATA Step, Macro, Functions and more

who modified the file in windows

Reply
Occasional Contributor
Posts: 10

who modified the file in windows

Hi ,

 

Can you please help me find 'who modified the file .sas files in windows OS' using sas 9.4 .

 

Kindly let me know if you require any other details.

 

Thanks,

Kayal

Super User
Posts: 9,890

Re: who modified the file in windows

Posted in reply to Kayalvizhi

Doing this requires installation and activation of an audit subsystem in the operating system. The OS itself stores only the timestamp of the last change, not which user made it.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Super User
Posts: 9,416

Re: who modified the file in windows

Posted in reply to Kayalvizhi

If your creating code files, why do you not have some sort of version control system in place, be it Tortoise via Explorer, or Git via cloud, or even inbuilt into your production environment.  Even if there was a way to tell who changed a file from the OS, its not going to be that exactly reliable any more than changed date, as these things can quite easily be altered.

Super User
Posts: 13,321

Re: who modified the file in windows

Posted in reply to Kayalvizhi

The information maintained with the file in Windows will depend quite a bit on which program creates, modifies and uses the file.

Office files, such as Word or Excel documents you can right click on the file from the Windows Explorer, click on Properties and the Details tab to find out some information about who/what created or last modified the file. But .SAS program files won't have that information stored though it should have Owner information which may or may not have the last person involved. Look in the online help or SAS documentation for the FINFO, and related functions, for approaches that may let find that information using SAS.

 

So you will need a separate tool such as @KurtBremser or @RW9 mentioned.

Valued Guide
Posts: 559

Re: who modified the file in windows

Posted in reply to Kayalvizhi

Hi,

 

I suggest using Tortoise as @RW9 mentioned. Its a great tool to monitor repositories and notifies you in case there are new commits.

Thanks,
Suryakiran
Ask a Question
Discussion stats
  • 4 replies
  • 82 views
  • 0 likes
  • 5 in conversation