Dear SAS-Community,
is there a way to sort a data set and preserve the audit trail?
Proc Sort replaces the data set and does not preserve the audit trail.
Thank you!
I do not think there is. But you could try putting an index on the table instead, e.g.:
/* This does not work. Audit trail will be dropped:
proc sort data=audited;
by ID Date;
run;
*/
proc sql;
create index idx on audited(ID,Date);
quit;
You should then be able to read the data set BY ID DATE. It may run more slowly, but if the table is not too big, that should not be a problem.
PS: Not tested, just a suggestion to try.
Thank you for your answer 🍓. Your answer might help somebody, but for me this is not what I am looking for.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.