<?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 Importing data dynamically into SAS VA using SAS Base in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Importing-data-dynamically-into-SAS-VA-using-SAS-Base/m-p/242958#M3090</link>
    <description>&lt;P&gt;I'm tyring to figure out importing data (from SQL database) dynamically to Non-distributed SAS VA using SAS Base.&lt;/P&gt;&lt;P&gt;For example, I'd like to extract last 90 days of data from SQL database.&lt;/P&gt;&lt;P&gt;So, I can use SAS code below to pull last 90 days data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let date_window=90;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql; connect to odbc as DBData&amp;nbsp;(DSN=DSNdata user=user1 pw=userpw);&lt;BR /&gt;create table Defect as&lt;BR /&gt;select * from connection to Defect&lt;BR /&gt;(&lt;BR /&gt;DECLARE @Date datetime&lt;BR /&gt;SET @Date = DATEADD(day, DATEDIFF(day, 0, GetDate()),0) - &amp;amp;date_window.&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM [DBName].[schema].[Table]&lt;BR /&gt;where ATTIME &amp;gt;@date&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, at SAS script level, I'd like to know&lt;/P&gt;&lt;P&gt;1. how to load and unload&amp;nbsp;the created 'Defect' table to SAS VA&lt;/P&gt;&lt;P&gt;2. how to delete/clear the data from SAS VA (LASR Tables) once it has been loaded&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. (I'm one fo the admins of SAS VA instantiated) where I can check SAS VA config info such as port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give some help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 16:21:39 GMT</pubDate>
    <dc:creator>joshsuihn</dc:creator>
    <dc:date>2016-01-12T16:21:39Z</dc:date>
    <item>
      <title>Importing data dynamically into SAS VA using SAS Base</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Importing-data-dynamically-into-SAS-VA-using-SAS-Base/m-p/242958#M3090</link>
      <description>&lt;P&gt;I'm tyring to figure out importing data (from SQL database) dynamically to Non-distributed SAS VA using SAS Base.&lt;/P&gt;&lt;P&gt;For example, I'd like to extract last 90 days of data from SQL database.&lt;/P&gt;&lt;P&gt;So, I can use SAS code below to pull last 90 days data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let date_window=90;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql; connect to odbc as DBData&amp;nbsp;(DSN=DSNdata user=user1 pw=userpw);&lt;BR /&gt;create table Defect as&lt;BR /&gt;select * from connection to Defect&lt;BR /&gt;(&lt;BR /&gt;DECLARE @Date datetime&lt;BR /&gt;SET @Date = DATEADD(day, DATEDIFF(day, 0, GetDate()),0) - &amp;amp;date_window.&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM [DBName].[schema].[Table]&lt;BR /&gt;where ATTIME &amp;gt;@date&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, at SAS script level, I'd like to know&lt;/P&gt;&lt;P&gt;1. how to load and unload&amp;nbsp;the created 'Defect' table to SAS VA&lt;/P&gt;&lt;P&gt;2. how to delete/clear the data from SAS VA (LASR Tables) once it has been loaded&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. (I'm one fo the admins of SAS VA instantiated) where I can check SAS VA config info such as port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give some help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Importing-data-dynamically-into-SAS-VA-using-SAS-Base/m-p/242958#M3090</guid>
      <dc:creator>joshsuihn</dc:creator>
      <dc:date>2016-01-12T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data dynamically into SAS VA using SAS Base</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Importing-data-dynamically-into-SAS-VA-using-SAS-Base/m-p/243759#M3131</link>
      <description>&lt;P&gt;You might consider using the Autoload feature for this task. &amp;nbsp;You can drop a dataset to the host file system and the autoloader will place it in the LASR server. &amp;nbsp;It manages the task quiet nicely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an overview of the process:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.zencos.com/blog/using-the-sas-visual-analytics-autoload-feature/" target="_blank"&gt;https://www.zencos.com/blog/using-the-sas-visual-analytics-autoload-feature/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 13:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Importing-data-dynamically-into-SAS-VA-using-SAS-Base/m-p/243759#M3131</guid>
      <dc:creator>TriciaAanderud</dc:creator>
      <dc:date>2016-01-15T13:09:07Z</dc:date>
    </item>
  </channel>
</rss>

