<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SP: Getting WRS-Report name(just like METAUSER for username) in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12965#M2327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NN,&lt;/P&gt;&lt;P&gt;thanks a lot for your answer, i will check the keyActions.log.&lt;/P&gt;&lt;P&gt; I already parse the jboss server.log for user logins, maybe the&lt;/P&gt;&lt;P&gt;keyActions.log can be parsed the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I could put it in the prompt for each Infomap,&lt;/P&gt;&lt;P&gt;or I could create a SP for each report hard-coding the report name,&lt;/P&gt;&lt;P&gt;and it would work both ways, but there has to be an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting a report about which reports are used most by my users&lt;/P&gt;&lt;P&gt;is all I want, maybe this functionality is already hidden somewhere,&lt;/P&gt;&lt;P&gt;I just don't see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice weekend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 20:49:43 GMT</pubDate>
    <dc:creator>AndreR</dc:creator>
    <dc:date>2012-02-24T20:49:43Z</dc:date>
    <item>
      <title>SP: Getting WRS-Report name(just like METAUSER for username)</title>
      <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12963#M2325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to create an observation in a table each time a report is opened/refreshed in WRS with time, username and report name.&lt;/P&gt;&lt;P&gt;Time and username I already have, but I don't find anything on the net for the report name, doas anyone have a clue?&lt;/P&gt;&lt;P&gt;Can I get the report name through GETOPTION or METADATA_GETATTR somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code for the SP, the SP is added in the information map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;%macro SAS_Report_Hit_Log;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let _timestamp&amp;nbsp; = %sysfunc(DATETIME()); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let _metauser&amp;nbsp;&amp;nbsp; = %scan(%sysfunc(getoption(METAUSER)),1,'@'); &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let _reportname = %scan(%sysfunc(getoption(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;???&lt;/STRONG&gt;&lt;/SPAN&gt;)),1,'@');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO PROD.CTL_SAS_REPORT_MONITORING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Timestamp, Username, ReportName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES(&amp;amp;_timestamp, "&amp;amp;_metauser", "&amp;amp;_reportname");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;%mend SAS_Report_Hit_Log;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;%SAS_Report_Hit_Log;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 13:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12963#M2325</guid>
      <dc:creator>AndreR</dc:creator>
      <dc:date>2012-02-24T13:17:40Z</dc:date>
    </item>
    <item>
      <title>SP: Getting WRS-Report name(just like METAUSER for username)</title>
      <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12964#M2326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am sorry i donot have an exact solution for your request..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i thought there were server logs which were available which would have given you all the information that you were looking for..&lt;/P&gt;&lt;P&gt;A sasnote which i felt was somewhat in the same lines is &lt;A href="http://support.sas.com/kb/39/510.html"&gt;http://support.sas.com/kb/39/510.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a roundaout solution which comes to my mind if nothing else works is to define condition in your Infomap which will contain the report name and then use it in the Prompt for the STP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 18:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12964#M2326</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2012-02-24T18:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: SP: Getting WRS-Report name(just like METAUSER for username)</title>
      <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12965#M2327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NN,&lt;/P&gt;&lt;P&gt;thanks a lot for your answer, i will check the keyActions.log.&lt;/P&gt;&lt;P&gt; I already parse the jboss server.log for user logins, maybe the&lt;/P&gt;&lt;P&gt;keyActions.log can be parsed the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I could put it in the prompt for each Infomap,&lt;/P&gt;&lt;P&gt;or I could create a SP for each report hard-coding the report name,&lt;/P&gt;&lt;P&gt;and it would work both ways, but there has to be an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting a report about which reports are used most by my users&lt;/P&gt;&lt;P&gt;is all I want, maybe this functionality is already hidden somewhere,&lt;/P&gt;&lt;P&gt;I just don't see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice weekend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 20:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12965#M2327</guid>
      <dc:creator>AndreR</dc:creator>
      <dc:date>2012-02-24T20:49:43Z</dc:date>
    </item>
    <item>
      <title>SP: Getting WRS-Report name(just like METAUSER for username)</title>
      <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12966#M2328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at SAS Aduit Monitoring and performance (APM), it contains a out of the box report for top ten reports.... you can modify that to add user etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The APM Creates an artifacts table which contains all the KeyAction details, and other logs - parses logs nightly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little bit fiddly to set up if on multiple machines but instructions are good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 20:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12966#M2328</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2012-02-26T20:37:00Z</dc:date>
    </item>
    <item>
      <title>SP: Getting WRS-Report name(just like METAUSER for username)</title>
      <link>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12967#M2329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Barry,&lt;/P&gt;&lt;P&gt;thanks for your tip, I will look into SAS APM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SP-Getting-WRS-Report-name-just-like-METAUSER-for-username/m-p/12967#M2329</guid>
      <dc:creator>AndreR</dc:creator>
      <dc:date>2012-02-27T09:16:14Z</dc:date>
    </item>
  </channel>
</rss>

