<?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: Activate a macro variable via button control? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853148#M16809</link>
    <description>This is amazing. How do you reference the parameter in your code coming from the URL?</description>
    <pubDate>Tue, 10 Jan 2023 19:56:51 GMT</pubDate>
    <dc:creator>ender111</dc:creator>
    <dc:date>2023-01-10T19:56:51Z</dc:date>
    <item>
      <title>Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/852995#M16802</link>
      <description>&lt;P&gt;What I am trying to do is use a control on a visual to manually assign a variable that a SAS program can reference before a different report is opened.&lt;/P&gt;&lt;P&gt;is that possible?&amp;nbsp; Can a button or drop down be used to store a macro variable somewhere that can be used by either a SAS program or a data plan?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not mean using a button or drop down to assign a parameter to be used by a visual.&amp;nbsp; It needs to be used by a program or data plan.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 06:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/852995#M16802</guid>
      <dc:creator>ender111</dc:creator>
      <dc:date>2023-01-10T06:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853004#M16803</link>
      <description>&lt;P&gt;Feeding a value into SAS code is done with user prompts in stored processes.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 07:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853004#M16803</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-10T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853102#M16804</link>
      <description>&lt;P&gt;Stored Process is supposed to be available in the object menu under "Other", but is not present in my installation.&amp;nbsp; Is there some other way to access a stored process via button or drop down object or assign a macro execution through a control on a visual or other object?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 17:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853102#M16804</guid>
      <dc:creator>ender111</dc:creator>
      <dc:date>2023-01-10T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853106#M16805</link>
      <description>&lt;P&gt;Which version of Visual Analytics are you using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 17:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853106#M16805</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2023-01-10T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853107#M16806</link>
      <description>SAS VA 8.5.1.</description>
      <pubDate>Tue, 10 Jan 2023 17:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853107#M16806</guid>
      <dc:creator>ender111</dc:creator>
      <dc:date>2023-01-10T17:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853137#M16807</link>
      <description>&lt;P&gt;The easiest way to accomplish this is to create an action from the VA object that links to a SAS Job.&amp;nbsp; For example, below I have a list table.&amp;nbsp; When I click on the actions, I can link to a URL.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1673378160733.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79250i739CEE3BB18940B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1673378160733.png" alt="KeithM_0-1673378160733.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When adding the URL, paste in the URL for your job execution &lt;A href="http://YourVAServer.com/SASJobExecution" target="_blank"&gt;(http://YourVAServer.com/SASJobExecution&lt;/A&gt;).&amp;nbsp; You then have the option to add a parameter.&amp;nbsp; &amp;nbsp;The parameter will be tacked on at the end of your URL, so in your SAS code for the job, you can just reference the parameter like a normal macro variable.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_1-1673378424114.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79251i7445D85674A3ED45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_1-1673378424114.png" alt="KeithM_1-1673378424114.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 19:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853137#M16807</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2023-01-10T19:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853148#M16809</link>
      <description>This is amazing. How do you reference the parameter in your code coming from the URL?</description>
      <pubDate>Tue, 10 Jan 2023 19:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853148#M16809</guid>
      <dc:creator>ender111</dc:creator>
      <dc:date>2023-01-10T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853173#M16810</link>
      <description>Below is a very simple job.  From the previous example, I'm passing in make.  You reference make using &amp;amp;make in your SAS code.  Put it in double quotes to evaluate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*  Write the custom HTML to _webout;&lt;BR /&gt;&lt;BR /&gt; %global make; &lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;file _webout;&lt;BR /&gt;put '&amp;lt;html&amp;gt;'; &lt;BR /&gt;put '&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Hello World!&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;'; &lt;BR /&gt;put '&amp;lt;body&amp;gt;'; &lt;BR /&gt;put "&amp;lt;h1&amp;gt;The selected car is: &amp;amp;make&amp;lt;/h1&amp;gt;";&lt;BR /&gt;put '&amp;lt;/body&amp;gt;'; &lt;BR /&gt;put '&amp;lt;/html&amp;gt;';&lt;BR /&gt;run;</description>
      <pubDate>Tue, 10 Jan 2023 21:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/853173#M16810</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2023-01-10T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Activate a macro variable via button control?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/854620#M16866</link>
      <description>Thanks, Keith. This was perfect. I had some trouble with assigning the variable on the URL end, but it was just necessary to input the optional target fields, then everything worked great. Job Execution was new for me so that took some getting used to, but is a very nice complement to report generating. Thanks again!</description>
      <pubDate>Thu, 19 Jan 2023 15:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Activate-a-macro-variable-via-button-control/m-p/854620#M16866</guid>
      <dc:creator>ender111</dc:creator>
      <dc:date>2023-01-19T15:58:53Z</dc:date>
    </item>
  </channel>
</rss>

