Is there any mechanism to query a history of SAS\Studio activity?
When ' Continue where you left off' is specified in Startup preferences, where are the details stored?
Somewhere, I saw a reference to %AppData%\SAS\SASStudio\preferences\ but I don't have that location.
SAS release: 9.04.01M8P01182023
SAS platform: X64_SRV19 WIN
The JSON has a bunch of info which may be better but this primitive approach seems to be working over the past few weeks :
libname lasttabs clear ;
libname lasttabs json "%sysget(APPDATA)\SAS\SASStudio\preferences\editTabContentPane.SWE.lastTabs.key" ;
data work.recent_progs (keep = nowdt uriparent name moddt) ;
set lasttabs.maintabs ;
JSONstringSecs = input(modifieddate, 13.) / 1000 ;
moddt = JSONstringSecs + intnx('second','01jan1960:00:00:00'dt,'01jan1970:00:00:00'dt) ;
nowdt = datetime() ;
format nowdt B8601DT15. ;
run ;
proc sql ;
create table mydata.prev_progs as
select * from mydata.recent_progs ;
insert into mydata.recent_progs
select * from work.recent_progs
where name not in
(select distinct name from mydata.prev_progs) ;
select nowdt
, uriparent
, name
, moddt format = datetime.
from mydata.recent_progs
order by 3 desc
;
quit ;
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.