Hello, I want to create an observation in a table each time a report is opened/refreshed in WRS with time, username and report name. Time and username I already have, but I don't find anything on the net for the report name, doas anyone have a clue? Can I get the report name through GETOPTION or METADATA_GETATTR somehow? Here's the code for the SP, the SP is added in the information map: %macro SAS_Report_Hit_Log; %let _timestamp = %sysfunc(DATETIME()); %let _metauser = %scan(%sysfunc(getoption(METAUSER)),1,'@'); %let _reportname = %scan(%sysfunc(getoption(???)),1,'@'); proc sql; INSERT INTO PROD.CTL_SAS_REPORT_MONITORING (Timestamp, Username, ReportName) VALUES(&_timestamp, "&_metauser", "&_reportname"); quit; %mend SAS_Report_Hit_Log; %SAS_Report_Hit_Log; Thanks in advance, Kind regards, André
... View more