files and folders : delete , creation, modification

Reply
Super Contributor
Posts: 371

files and folders : delete , creation, modification

Hello,

Is it possible to see in sas the history of deleting (and creation) a files or folder by with user.

I am talking about externel and internal files(=sas file)

If not, I am open to others solutions( unix,....)

Thank you

Frequent Contributor
Posts: 144

Re: files and folders : delete , creation, modification

For external files I don't know, but for internal files, you have the dataset SASHELP.VTABLE.

In this table appear the library, the name of the table and when was editted and created.

Super User
Posts: 7,444

Re: files and folders : delete , creation, modification

This may need the auditing subsystem of your operating system.

Caveats:

will use CPU resources, and will need lots of space for the audit logs, depending on the traffic in the audited resources.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super Contributor
Posts: 371

Re: files and folders : delete , creation, modification

Thank you.

I am intersted by files was deleting

Super User
Posts: 7,444

Re: files and folders : delete , creation, modification

Once a file is deleted, all traces of it are gone in SAS, as the dictionary tables are created "live" from the currently assigned libraries.

To detect the deletion of a file, one needs to audit the directory where the file is(was) stored, because deletion involves writing to the directory.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Super User
Posts: 7,720

Re: files and folders : delete , creation, modification

As KurtBremser has stated, this would be in your OS.  However there is also another alternative.  If you have a version control system setup (and why would you not if your programming), and the files in question are versioned through that, then you can check the history of the file via the svn repository which will give you an XML report on actions, changes, when, by who etc.

Super Contributor
Posts: 371

Re: files and folders : delete , creation, modification

Thank you

But I do not have svn

Ask a Question
Discussion stats
  • 6 replies
  • 314 views
  • 0 likes
  • 4 in conversation