<?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: Read existing View created by someone else in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64929#M18483</link>
    <description>Hello Chandler,&lt;BR /&gt;
&lt;BR /&gt;
I do not see any problems with your code. Views are used the same way as datasets. The difference is in creation of a view (namely in the data stetement):&lt;BR /&gt;
[pre]&lt;BR /&gt;
data a/view=a;&lt;BR /&gt;
  x=1;&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
    <pubDate>Wed, 11 May 2011 17:22:37 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2011-05-11T17:22:37Z</dc:date>
    <item>
      <title>Read existing View created by someone else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64928#M18482</link>
      <description>I see a lot of SAS documentation on how to create a view, and efficiency and etc. etc., but nothing on syntax to just read the view to create a subset dataset for a report.&lt;BR /&gt;
&lt;BR /&gt;
I have access to a library of data from another department.  In that library is a view, already created, and updated each month.  I just need data from that view to create a subset that will be used for reporting purposes.  I don't want to create the reports directly from that view, for safety and data integrity purposes and to prevent errors or overrwriting data.&lt;BR /&gt;
&lt;BR /&gt;
I want to write a data step to place the data from that view into a dataset in another library as follows:&lt;BR /&gt;
&lt;BR /&gt;
data mylib.acls_curr ;&lt;BR /&gt;
  set loan.Month_end_data ;  /**  NOTE: "month_end_data" is an existing view **/&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Someone, please help me with the syntax.</description>
      <pubDate>Wed, 11 May 2011 17:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64928#M18482</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2011-05-11T17:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read existing View created by someone else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64929#M18483</link>
      <description>Hello Chandler,&lt;BR /&gt;
&lt;BR /&gt;
I do not see any problems with your code. Views are used the same way as datasets. The difference is in creation of a view (namely in the data stetement):&lt;BR /&gt;
[pre]&lt;BR /&gt;
data a/view=a;&lt;BR /&gt;
  x=1;&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 11 May 2011 17:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64929#M18483</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-05-11T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read existing View created by someone else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64930#M18484</link>
      <description>Thanks, SPR, for your quick response.  I will proceed with my data step code, as is.</description>
      <pubDate>Wed, 11 May 2011 17:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-existing-View-created-by-someone-else/m-p/64930#M18484</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2011-05-11T17:42:21Z</dc:date>
    </item>
  </channel>
</rss>

