<?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: SQL Views in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Views/m-p/598204#M172489</link>
    <description>&lt;P&gt;A view does not contain data. It is simply the recipe to generate the data. So, yes, the data retrieved when calling the view is always up to date.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 18:28:43 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-10-21T18:28:43Z</dc:date>
    <item>
      <title>SQL Views</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Views/m-p/598197#M172482</link>
      <description>&lt;P&gt;Hi guys, Quick question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating a PROC SQL view in SAS then storing the view in a library on SAS Server...will the underlying data update each time I use the view? or will I need to put the program on a scheduler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;BR /&gt;connect to odbc (datasrc=mydatasrc);&lt;BR /&gt;create view mylib.test as&lt;BR /&gt;select&lt;BR /&gt;*&lt;BR /&gt;from connection to odbc (select * from [db].[dbo].[tablename]);&lt;BR /&gt;disconnect from odbc;&lt;BR /&gt;quit;&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;then I use that view in a different program...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test; set mylib.test; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will the data be updated?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 18:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Views/m-p/598197#M172482</guid>
      <dc:creator>zdeb15</dc:creator>
      <dc:date>2019-10-21T18:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Views</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Views/m-p/598204#M172489</link>
      <description>&lt;P&gt;A view does not contain data. It is simply the recipe to generate the data. So, yes, the data retrieved when calling the view is always up to date.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 18:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Views/m-p/598204#M172489</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-10-21T18:28:43Z</dc:date>
    </item>
  </channel>
</rss>

