<?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: SAS SQL Tables vs Dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23417#M5191</link>
    <description>"metalray"&lt;BR /&gt;
 &lt;BR /&gt;
for "in-database enabled" SAS procedures &lt;BR /&gt;
which move the sas analytics (intellectual property) into the database execution platform (rather than moving the data out of the data base into a platform where SAS executes ) see "Paper 300-2010 SAS® Presents In-Database Base Procedures in Practice" at&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings10/300-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/300-2010.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
(imho) it is a major (and now obvious) strategy for analytic performance.&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
    <pubDate>Mon, 14 Jun 2010 11:07:05 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-06-14T11:07:05Z</dc:date>
    <item>
      <title>SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23404#M5178</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am very new to SAS and just go through the SQL training and did not quite get the difference between tables or views created through SAS SQL "Create TABLE" and data sets/files created in the data step that holds actual data, or a SAS data view, a data set that references data that is stored elsewhere.&lt;BR /&gt;
&lt;BR /&gt;
Which ones would you use when (situation)...?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for clarification</description>
      <pubDate>Mon, 17 May 2010 15:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23404#M5178</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-05-17T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23405#M5179</link>
      <description>CREATE TABLE creates the same SAS dataset that a DATA step might.  Ditto the views.&lt;BR /&gt;
&lt;BR /&gt;
Which to use is often a function of other parts of your computing environment and whether your data are dynamic or static.  Views take longer to process, but use less disk space.  A view is updated whenever the underlying table is updated, so you don't have to re-run some program.</description>
      <pubDate>Mon, 17 May 2010 15:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23405#M5179</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-05-17T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23406#M5180</link>
      <description>I see. Thanks for explaining. In SAS SQL the "CREATE TABLE" does create a dataset. &lt;BR /&gt;
&lt;BR /&gt;
I assume that the dataset creation is helpful when using MS excel as a source or text files, while CREATE TABLE can be used to replicate data as a SAS dataset that can be retrieved from relational data sources.&lt;BR /&gt;
&lt;BR /&gt;
why would one replicate data as a SAS dataset when it is already in relationsl data sources?</description>
      <pubDate>Tue, 18 May 2010 08:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23406#M5180</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-05-18T08:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23407#M5181</link>
      <description>"why would one replicate data as a SAS dataset when it is already in relationsl data sources?"&lt;BR /&gt;
&lt;BR /&gt;
It's most often about data aggregation or denormalisation and not simple replication. Whether to store such aggregated data/a data mart as a table or not depends most of the time whether it is used more than once (storage requirements vs. performance).&lt;BR /&gt;
&lt;BR /&gt;
About views: Think of a SQL view as nothing else than hidden SQL code which gets executed whenever you access the view (the same is also true for a SAS data step view).&lt;BR /&gt;
&lt;BR /&gt;
I.e:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 describe view sashelp.vstable;&lt;BR /&gt;
quit;&lt;BR /&gt;
   will show you the SQL code executed when you access the view sashelp.vstable&lt;BR /&gt;
&lt;BR /&gt;
data view=....&lt;BR /&gt;
   describe;&lt;BR /&gt;
run;&lt;BR /&gt;
   shows you the data step view.&lt;BR /&gt;
&lt;BR /&gt;
When the SQL query takes a long time and the same data is accessed more than once then it might be better to create a intermediary table instead of a view (because whenever you access the view the query has to be executed).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 18 May 2010 09:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23407#M5181</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-05-18T09:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23408#M5182</link>
      <description>Thanks a lot to both of you for the explanation.&lt;BR /&gt;
I do have a strong Hyperion OLAP background and as a&lt;BR /&gt;
staging database we used a relational Oracle DB and did all&lt;BR /&gt;
the transformation there but I do still not get the incentive&lt;BR /&gt;
of using the SAS data set to do so. For me, admittedly as a SAS beginner, I&lt;BR /&gt;
do think that a database such as Oracle is better to keep data&lt;BR /&gt;
than a SAS data set and I assume with tools such as SAS Access I get query a relational database or SAS OLAP cube to do the reporting.</description>
      <pubDate>Tue, 18 May 2010 13:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23408#M5182</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-05-18T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23409#M5183</link>
      <description>Agree with what you say.&lt;BR /&gt;
 &lt;BR /&gt;
What people often do is reduce the amount of data within the DB, then pull it to SAS, do may be a bit further processing (it's just often easier to code with SAS than with SQL only) and then use the SAS Proc's.&lt;BR /&gt;
&lt;BR /&gt;
Also in case where the data source comes from more than one system/DB one has to decide where to do the joins.</description>
      <pubDate>Tue, 18 May 2010 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23409#M5183</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-05-18T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23410#M5184</link>
      <description>&amp;gt; CREATE TABLE creates the same SAS dataset that a DATA&lt;BR /&gt;
&amp;gt; step might.  Ditto the views.&lt;BR /&gt;
&lt;BR /&gt;
Not quite ditto for the views. They are interoperable as data sources, but can differ in terms of other functionality. For example, the DESCRIBE statement in PROC SQL will choke on a DATA step view, and the DESCRIBE statement in a DATA step will choke on a PROC SQL view. For example, PROC SQL views can be updated but DATA step views cannot. See &lt;A href="http://www.howles.com/sqlbook/" target="_blank"&gt;http://www.howles.com/sqlbook/&lt;/A&gt; (Chapter 10) for examples.</description>
      <pubDate>Tue, 18 May 2010 21:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23410#M5184</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2010-05-18T21:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23411#M5185</link>
      <description>@Patrick,&lt;BR /&gt;
&lt;BR /&gt;
I am still restless about this issue. I dont want&lt;BR /&gt;
to unsettle anyone here but right now I (admittedly a SAS beginner coming from&lt;BR /&gt;
the Hyperion camp) cant see the point of loading my 30 GB tables&lt;BR /&gt;
from DB2 and Oracle into SAS data sets to then get them into the SAS Olap&lt;BR /&gt;
cube. in theory I would create a solid and multiplexed oracle db&lt;BR /&gt;
that is accessed with SAS/Access from SAS Cube Studio.&lt;BR /&gt;
&lt;BR /&gt;
To me, a staging areas with SAS data sets, is in competition with a full fledged staging area in Oracle and somehow I see the SAS data sets as inferior…so why do they exist?&lt;BR /&gt;
&lt;BR /&gt;
PS: PLSQL is quite powerful for data manipulation as well.</description>
      <pubDate>Fri, 11 Jun 2010 12:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23411#M5185</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-06-11T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23412#M5186</link>
      <description>how about using sas views using "create view" to access oracle db.</description>
      <pubDate>Fri, 11 Jun 2010 13:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23412#M5186</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-11T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23413#M5187</link>
      <description>I can just use Oracle Views with SAS/Access, with Oracle indexes also used by other Oracle DB Objects and I have it all nicely in one box. Where is the need for SAS Datasets or Views here?&lt;BR /&gt;
&lt;BR /&gt;
Dont get me wrong. I think SAS has great analytic capabilities but I just dont get the need to use its data formats.</description>
      <pubDate>Fri, 11 Jun 2010 13:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23413#M5187</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-06-11T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23414#M5188</link>
      <description>metalray;&lt;BR /&gt;
&lt;BR /&gt;
To use a SAS PROCedure, the data has to be in a SAS dataset or SAS view so that the procedure can use it.  Data that resides in a DB somewhere is rarely ready to use in any procedure and certainly cannot take advantage of the rich SAS formats and functions.</description>
      <pubDate>Fri, 11 Jun 2010 17:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23414#M5188</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-06-11T17:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23415#M5189</link>
      <description>Hello metalray;  you might not need SAS datasets/views - quite possibly you are luckier than some/most folks in that all the data you need are in the database and/or you are permitted to upload the data you want into the database (to enrich that which is allready there)...&lt;BR /&gt;
&lt;BR /&gt;
many times folks use SAS datasets to join data from the database to that from elsewhere, or to reshape data from the database... their local DBA conditions are such that they cant do it in the database, so they do it with SAS databases...&lt;BR /&gt;
&lt;BR /&gt;
if your data are ready for the analytics without any transformation, you are in good shape to feed it into the SAS procs with a simple libname statement&lt;BR /&gt;
&lt;BR /&gt;
paul</description>
      <pubDate>Fri, 11 Jun 2010 20:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23415#M5189</guid>
      <dc:creator>Paul_Kent_SAS</dc:creator>
      <dc:date>2010-06-11T20:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23416#M5190</link>
      <description>Thanks for the feedback guys. That helped.</description>
      <pubDate>Mon, 14 Jun 2010 07:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23416#M5190</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2010-06-14T07:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Tables vs Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23417#M5191</link>
      <description>"metalray"&lt;BR /&gt;
 &lt;BR /&gt;
for "in-database enabled" SAS procedures &lt;BR /&gt;
which move the sas analytics (intellectual property) into the database execution platform (rather than moving the data out of the data base into a platform where SAS executes ) see "Paper 300-2010 SAS® Presents In-Database Base Procedures in Practice" at&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings10/300-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/300-2010.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
(imho) it is a major (and now obvious) strategy for analytic performance.&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 14 Jun 2010 11:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-SQL-Tables-vs-Dataset/m-p/23417#M5191</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-06-14T11:07:05Z</dc:date>
    </item>
  </channel>
</rss>

