<?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 Predefined macros is not working at Web report studio in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24235#M348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with the predefined macros. I create a stored process that contain predefined macros (_USERNAME). I want to get username from the user. Here is my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080;"&gt;%global _USERNAME usernames;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname test "*(libref location)";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA test.UsernameData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username="&amp;amp;_USERNAME";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET test.UsernameData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("usernames",username);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %stpend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I access it by using SASStoredProcess/do , the stored process is working. Then I try to make a report by using web report studio. First, I create information map and import the stored process to it. Then I create new data item, that will stored the &lt;SPAN style="text-decoration: underline;"&gt;usernames &lt;/SPAN&gt; from &lt;SPAN style="color: #008080;"&gt;test.UsernameData.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;I create new web report studio and using the information that I just created. I try to show whether web report studio show the its username or not like in &lt;SPAN style="color: #000000;"&gt; SASStoredProcess/do. The result is empty string. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is it the macros is not working in web report studio?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hopefully, anyone could help me to solve the problem. Thank You.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 10:52:33 GMT</pubDate>
    <dc:creator>kuro_kuro</dc:creator>
    <dc:date>2012-03-07T10:52:33Z</dc:date>
    <item>
      <title>Predefined macros is not working at Web report studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24235#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with the predefined macros. I create a stored process that contain predefined macros (_USERNAME). I want to get username from the user. Here is my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080;"&gt;%global _USERNAME usernames;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname test "*(libref location)";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA test.UsernameData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username="&amp;amp;_USERNAME";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET test.UsernameData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("usernames",username);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %stpend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I access it by using SASStoredProcess/do , the stored process is working. Then I try to make a report by using web report studio. First, I create information map and import the stored process to it. Then I create new data item, that will stored the &lt;SPAN style="text-decoration: underline;"&gt;usernames &lt;/SPAN&gt; from &lt;SPAN style="color: #008080;"&gt;test.UsernameData.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;I create new web report studio and using the information that I just created. I try to show whether web report studio show the its username or not like in &lt;SPAN style="color: #000000;"&gt; SASStoredProcess/do. The result is empty string. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is it the macros is not working in web report studio?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hopefully, anyone could help me to solve the problem. Thank You.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 10:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24235#M348</guid>
      <dc:creator>kuro_kuro</dc:creator>
      <dc:date>2012-03-07T10:52:33Z</dc:date>
    </item>
    <item>
      <title>Predefined macros is not working at Web report studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24236#M349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry i donot have an answer specific to ur question. nor can i test in web report...... but in our framework i usually use the _metauser macro...&lt;/P&gt;&lt;P&gt; will that help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly i feel you are trying to view the hits on your reports .. you should have a look at this sasnote &lt;A class="jive-link-external-small" href="http://support.sas.com/kb/39/510.html" style="background-color: #ffffff; font-size: 12px; outline-style: none; color: #0e66ba; font-family: Arial, Helvetica, sans-serif;"&gt;http://support.sas.com/kb/39/510.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 19:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24236#M349</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2012-03-07T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Predefined macros is not working at Web report studio</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24237#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for reply,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried and it is worked. I chane the _username macro into _metauser macro. Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 01:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/Predefined-macros-is-not-working-at-Web-report-studio/m-p/24237#M350</guid>
      <dc:creator>kuro_kuro</dc:creator>
      <dc:date>2012-03-08T01:46:16Z</dc:date>
    </item>
  </channel>
</rss>

