<?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 SAS data Step view in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559044#M156068</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset "data1" &amp;amp; I create a data view "stuff" by:&lt;/P&gt;&lt;P&gt;libname s "filepath";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data s.stuff/view=s.stuff;&lt;/P&gt;&lt;P&gt;set s.data1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now it seems I always need "data1" to be in the folder s in order for SAS to be able read "stuff". If I move it, it won't read the data view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of me creating the view&amp;nbsp; was to save space by being able to remove the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp; there a way of doing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 16:13:51 GMT</pubDate>
    <dc:creator>Brian3</dc:creator>
    <dc:date>2019-05-15T16:13:51Z</dc:date>
    <item>
      <title>SAS data Step view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559044#M156068</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset "data1" &amp;amp; I create a data view "stuff" by:&lt;/P&gt;&lt;P&gt;libname s "filepath";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data s.stuff/view=s.stuff;&lt;/P&gt;&lt;P&gt;set s.data1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now it seems I always need "data1" to be in the folder s in order for SAS to be able read "stuff". If I move it, it won't read the data view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of me creating the view&amp;nbsp; was to save space by being able to remove the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp; there a way of doing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 16:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559044#M156068</guid>
      <dc:creator>Brian3</dc:creator>
      <dc:date>2019-05-15T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS data Step view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559045#M156069</link>
      <description>&lt;P&gt;It is not clear what you are asking.&amp;nbsp; You obviously cannot remove the underlying data without making the view useless.&lt;/P&gt;
&lt;P&gt;I assume that you want to store the view in a place with limited space and have it read from the actual data which is store in a place that has sufficient&amp;nbsp; storage.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname big '...disk1....';
libname little '...disk2...';
data little.x / view=little.x;
  set big.x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 16:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559045#M156069</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-15T16:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS data Step view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559056#M156076</link>
      <description>&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="sgml"&gt;
&lt;H1&gt;&lt;FONT style="background-color: rgb(252, 222, 192);"&gt;View&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;A &lt;FONT style="background-color: rgb(252, 222, 192);"&gt;view&lt;/FONT&gt; is a "virtual table." It does not actually exist but is a &lt;STRONG&gt;collection of rules that are used to extract data from existing &lt;/STRONG&gt;&lt;A href="http://127.0.0.1:53353/assist.hlp/adatcom_dataset.htm#cadatcomfdataset" target="_blank"&gt;tables.&lt;/A&gt; A &lt;FONT style="background-color: rgb(252, 222, 192);"&gt;view&lt;/FONT&gt; is processed in the same way as any SAS table, and its architecture is the same, with rows representing observations and columns representing variables. Because of the "virtual" nature of views, they cannot be updated.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The View could include code to read an external file referenced in an Infile statement for example. And every time the View is used the code would re-read that external file. Which might be desirable if a fixed name file is used to update things. But the data source has to exist somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data in question is large enough that you are worried about storage it could well be that additional time to access the data in whatever form might be excessive for actual processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 16:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559056#M156076</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-15T16:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS data Step view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559291#M156157</link>
      <description>Thank you both, I understand better now</description>
      <pubDate>Thu, 16 May 2019 12:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-data-Step-view/m-p/559291#M156157</guid>
      <dc:creator>Brian3</dc:creator>
      <dc:date>2019-05-16T12:52:27Z</dc:date>
    </item>
  </channel>
</rss>

