Desktop productivity for business analysts and programmers

Writing log to a table

SAS Employee
Posts: 20

Writing log to a table

Hi all,


There is a table located in SAS library and some users update that table. We want to see which user updated which part of the table at what time.


Is there a possible way to do this?


Many thanks,


Super User
Posts: 10,571

Re: Writing log to a table

Before trying to do that in SAS, I'd rather use the operating system's auditing facility.

Reason: most of the time, one can circumvent anything done above OS level. The OS is final authority in security matters.

Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Posts: 24,004

Re: Writing log to a table

You say which part of the table? 


Unless you have some sort of row auditing capabilities or table versioning it's impossible to tell which records were changed by whom. 


There red are row level auditing available in different databases so I'd start by finding out what my system was capable of tracking. 

Posts: 1,471

Re: Writing log to a table

So the table is a SAS dataset? And the updates are are updates/inserts that do not over-write the entire dataset? If so, then the audit trail facility may be useful, e.g.
Ask a Question
Discussion stats
  • 3 replies
  • 4 in conversation