<?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: Question: Macro Variables in SAS Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/162136#M852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello siewtongl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we do not support the use of SAS created macro variables directly within Visual Analytics.&amp;nbsp; However, you can leverage a stored process via Visual Analytics.&amp;nbsp; In the stored process, you can definitely call a macro variable within that context.&amp;nbsp; If you then had an output that would create a LASR table your output with Macro Variables could be utilized in LASR via Visual Analytics.&amp;nbsp; However, you can not not natively call that Macro Variable inside Visual Analytics.&amp;nbsp; I would be very interested in your use case in calling the macro variable inside VA.&amp;nbsp; If you can let me know what you had in mind that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 14:42:14 GMT</pubDate>
    <dc:creator>ted_werner_sas_com</dc:creator>
    <dc:date>2014-08-25T14:42:14Z</dc:date>
    <item>
      <title>Question: Macro Variables in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/162135#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've found a sas file in my server, it is a DataSetVarsToMacroVars.sas file. In this file it says that "Purpose : Converts values of columns in a data set to macro variables values".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did it means we can use macro variables in SAS Visual Analytics? If yes, how and where can we use the assigned macro variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11446i521542CF5D3DE1F9/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 02:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/162135#M851</guid>
      <dc:creator>siewtongl</dc:creator>
      <dc:date>2014-08-15T02:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Macro Variables in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/162136#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello siewtongl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we do not support the use of SAS created macro variables directly within Visual Analytics.&amp;nbsp; However, you can leverage a stored process via Visual Analytics.&amp;nbsp; In the stored process, you can definitely call a macro variable within that context.&amp;nbsp; If you then had an output that would create a LASR table your output with Macro Variables could be utilized in LASR via Visual Analytics.&amp;nbsp; However, you can not not natively call that Macro Variable inside Visual Analytics.&amp;nbsp; I would be very interested in your use case in calling the macro variable inside VA.&amp;nbsp; If you can let me know what you had in mind that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 14:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/162136#M852</guid>
      <dc:creator>ted_werner_sas_com</dc:creator>
      <dc:date>2014-08-25T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Macro Variables in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/354541#M7036</link>
      <description>&lt;P&gt;I have a project in VA where I need to restrict&amp;nbsp;user data viewed, but not the graphs and charts etc. that are in the report.&lt;/P&gt;&lt;P&gt;If I could call, for example, "&amp;amp;SYSUSERID" , I could match that user id to a column in my data set&amp;nbsp;that would limit what the end user can see.&lt;/P&gt;&lt;P&gt;The only other alternative is to create different reports, one for each "user group", with all the same content. This is not preferred, as I would have to change each report whenever a change was called for. It would be better to be able to control&amp;nbsp;what the end user sees by identifying who is logged in, then in the where clause, restrict&amp;nbsp;the rows they can see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my particular implementation, the hierarchy&amp;nbsp;would look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; district administrators can see all schools&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; principals can only see their school and district aggregated&amp;nbsp;data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; teachers can only see their&amp;nbsp;students, then school and district aggregated&amp;nbsp;data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/354541#M7036</guid>
      <dc:creator>cuevasj</dc:creator>
      <dc:date>2017-04-28T17:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Macro Variables in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/354683#M7040</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88226"&gt;@cuevasj&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While there isn't the concept of SAS macros for user identification, it is possible to apply conditional grants on your table and have row-level security imposed to achieve what you're after. If you want your graphs and charts not to have row-level security though, you would need to have 2 versions of the table, one with row-level security and use this in your tables/cross-tabs and the standard table in your charts/graphs. Be aware though the aggregated figures will be different due to the subsetting imposed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note if you allow the export data option from your graphs/charts ALL your end-users will be able to export and see the underlying data for all schools. So you may want to restrict this capability or ensure row-level security is consistent across all report objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some reference SAS Global Forum papers that you may find useful:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/11701-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/11701-2016.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1779-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1779-2015.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/3298-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/3298-2015.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 06:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Question-Macro-Variables-in-SAS-Visual-Analytics/m-p/354683#M7040</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2017-04-29T06:43:31Z</dc:date>
    </item>
  </channel>
</rss>

