<?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: views in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703582#M215608</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Can we update (add column ,rename of variables etc.,) view and index in sas&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Think a little about it:&lt;/P&gt;
&lt;P&gt;A view takes one or more datasets, possibly combines the data, and possibly applies logic to the data.&lt;/P&gt;
&lt;P&gt;Can you think of a way to reverse-engineer the input data from a change in the end result without a VERY serious programming effort?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the answer is a plain NO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can describe the view, both data step and SQL, and then use that as a base for changed code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class / view=class;
set sashelp.class;
rate = weight / Height;
run;

data view=class;
describe;
run;

proc sql;
create view class as
  select
    *,
    weight / height as rate
  from sashelp.class
;
quit;

proc sql;
describe view class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Dec 2020 11:02:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-04T11:02:08Z</dc:date>
    <item>
      <title>views in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703554#M215592</link>
      <description>&lt;P&gt;how to&amp;nbsp;Create a view from the view.?&lt;/P&gt;&lt;P&gt;how to&amp;nbsp;Create a data set from the view.?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 05:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703554#M215592</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-12-04T05:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: views in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703559#M215596</link>
      <description>&lt;P&gt;Suppose you have a data set named WORK.HAVE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create a view by - input can be either a data set or a view&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data my_view / view=my_view;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set have;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* add any sas code */
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Create a data set from a view:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data new;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set my_view;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Dec 2020 06:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703559#M215596</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-04T06:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: views in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703569#M215602</link>
      <description>Can we update (add column ,rename of variables etc.,) view and index in sas</description>
      <pubDate>Fri, 04 Dec 2020 09:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703569#M215602</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-12-04T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: views in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703582#M215608</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Can we update (add column ,rename of variables etc.,) view and index in sas&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Think a little about it:&lt;/P&gt;
&lt;P&gt;A view takes one or more datasets, possibly combines the data, and possibly applies logic to the data.&lt;/P&gt;
&lt;P&gt;Can you think of a way to reverse-engineer the input data from a change in the end result without a VERY serious programming effort?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the answer is a plain NO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can describe the view, both data step and SQL, and then use that as a base for changed code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class / view=class;
set sashelp.class;
rate = weight / Height;
run;

data view=class;
describe;
run;

proc sql;
create view class as
  select
    *,
    weight / height as rate
  from sashelp.class
;
quit;

proc sql;
describe view class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Dec 2020 11:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/views-in-sas/m-p/703582#M215608</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-04T11:02:08Z</dc:date>
    </item>
  </channel>
</rss>

