<?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: Executing a SQL query from the Data Preparation in SAS Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Executing-a-SQL-query-from-the-Data-Preparation-in-SAS-Visual/m-p/291068#M5036</link>
    <description>Hi raulet69, if I followed your question correctly, if you start with the UI and then unlock the generated code to enter your code: in the UI you should see a Properties panel where you can set the view option. In the Output panel you set a name for this view. At the bottom of the generated code, this name is then used in a data step with a set statement. Give that a try. Hope that helps.</description>
    <pubDate>Thu, 11 Aug 2016 20:03:02 GMT</pubDate>
    <dc:creator>I_Kong_SAS</dc:creator>
    <dc:date>2016-08-11T20:03:02Z</dc:date>
    <item>
      <title>Executing a SQL query from the Data Preparation in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Executing-a-SQL-query-from-the-Data-Preparation-in-SAS-Visual/m-p/283975#M4786</link>
      <description>&lt;P&gt;Hello chaps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question for you: is it possible to upload to memory a table when all you have is a SQL query, not an actual table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, I am suposed to do a dashboard on a set of data for a client, but what&amp;nbsp;the client has given me is not a table name bot a sql query. I was under the impression that it would not matter but I am finding otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I open the Data Preparation module the options I have is to add a table to the query,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have fiddle a bit with the code in the CODE tab and I have managed to come up with a set of code that runs successfully and, in theory, creates a view off the sql query I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;LIBNAME vertica&amp;nbsp;VERTICA PRESERVE_COL_NAMES=YES PRESERVE_TAB_NAMES=YES&amp;nbsp; SERVER="servername" DATABASE="dbanme" PORT=5433 USER=user&amp;nbsp;PASSWORD=pwd;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;&amp;nbsp; create view TEMP_LASR_VIEW_0 as&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;select * from vertica.SOME_TABLEs AND SOME_JOINS;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN&gt;proc printto; run;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this runs successfully. But I cannot find the&amp;nbsp;&lt;SPAN&gt;TEMP_LASR_VIEW_0 in the Administration part of VA. Where is that&amp;nbsp;TEMP_LASR_VIEW_0 view&amp;nbsp;created??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have access to E.Guide, SAS Studio or anuthing like that, only to SAS VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 08:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Executing-a-SQL-query-from-the-Data-Preparation-in-SAS-Visual/m-p/283975#M4786</guid>
      <dc:creator>raulet69</dc:creator>
      <dc:date>2016-07-13T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a SQL query from the Data Preparation in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Executing-a-SQL-query-from-the-Data-Preparation-in-SAS-Visual/m-p/291068#M5036</link>
      <description>Hi raulet69, if I followed your question correctly, if you start with the UI and then unlock the generated code to enter your code: in the UI you should see a Properties panel where you can set the view option. In the Output panel you set a name for this view. At the bottom of the generated code, this name is then used in a data step with a set statement. Give that a try. Hope that helps.</description>
      <pubDate>Thu, 11 Aug 2016 20:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Executing-a-SQL-query-from-the-Data-Preparation-in-SAS-Visual/m-p/291068#M5036</guid>
      <dc:creator>I_Kong_SAS</dc:creator>
      <dc:date>2016-08-11T20:03:02Z</dc:date>
    </item>
  </channel>
</rss>

