<?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: Data Step vs. Proc SQL: General Comparisons in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306958#M65697</link>
    <description>&lt;P&gt;Suggest you do some own research and then post your detailed answer here for us to comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could start with some Internet research. Already a simple Google search like&amp;nbsp;"site:support.sas.com 9.4 sql vs data step" will return results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 20:27:42 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2016-10-24T20:27:42Z</dc:date>
    <item>
      <title>Data Step vs. Proc SQL: General Comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306924#M65692</link>
      <description>&lt;P&gt;What can you do in a Data Step that you can't do in PROC SQL&amp;nbsp;and vice versa? What are situations where you would prefer one over the other (when is it best to use PROC SQL and when is it best to use the Data Step)? Thank you in advance for your input.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306924#M65692</guid>
      <dc:creator>JediApprentice</dc:creator>
      <dc:date>2016-10-24T19:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step vs. Proc SQL: General Comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306956#M65696</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Programming level&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, you describe what you want and let the procedure figure out the way to do it.&lt;/P&gt;
&lt;P&gt;In a data step, you describe what operations must be done, in detail, to get what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data structure&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, tables are sets (unordered). Join operations are defined in terms of the cartesian product.&lt;/P&gt;
&lt;P&gt;In a data step, datasets are sequences of records. Merge and update operations require prior sorting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Summaries&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, a limited group of summary functions can accumulate information about subgroups of data.&lt;/P&gt;
&lt;P&gt;in a data step, you can store information from one iteration to the next, but you must calculate your own summaries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Transportability&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Most SQL queries can be moved to database servers with minor adjustments.&lt;/P&gt;
&lt;P&gt;The data step must be run by SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Efficiency&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Proc SQL will perform on your behalf many optimisations that are not trivial.&lt;/P&gt;
&lt;P&gt;A data step is a compiled program that can outperform any interpreted data manipulation script such as SQL, given enough effort.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306956#M65696</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-10-24T20:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step vs. Proc SQL: General Comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306958#M65697</link>
      <description>&lt;P&gt;Suggest you do some own research and then post your detailed answer here for us to comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could start with some Internet research. Already a simple Google search like&amp;nbsp;"site:support.sas.com 9.4 sql vs data step" will return results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306958#M65697</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-24T20:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step vs. Proc SQL: General Comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306963#M65698</link>
      <description>&lt;P&gt;A simple google search &amp;nbsp;(proc sql and data step comparing) gives this paper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi29/269-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/269-29.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats﻿&lt;/a&gt;&amp;nbsp;offers this summary:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Programming level&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, you describe what you want and let the procedure figure out the way to do it.&lt;/P&gt;
&lt;P&gt;In a data step, you describe what operations must be done, in detail, to get what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data structure&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, tables are sets (unordered). Join operations are defined in terms of the cartesian product.&lt;/P&gt;
&lt;P&gt;In a data step, datasets are sequences of records. Merge and update operations require prior sorting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Summaries&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In proc SQL, a limited group of summary functions can accumulate information about subgroups of data.&lt;/P&gt;
&lt;P&gt;in a data step, you can store information from one iteration to the next, but you must calculate your own summaries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Transportability&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Most SQL queries can be moved to database servers with minor adjustments.&lt;/P&gt;
&lt;P&gt;The data step must be run by SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Efficiency&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Proc SQL will perform on your behalf many optimisations that are not trivial.&lt;/P&gt;
&lt;P&gt;A data step is a compiled program that can outperform any interpreted data manipulation script such as SQL, given enough effort.&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 12:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Step-vs-Proc-SQL-General-Comparisons/m-p/306963#M65698</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-10-25T12:07:28Z</dc:date>
    </item>
  </channel>
</rss>

