<?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: Diff between the codes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498691#M132592</link>
    <description>&lt;P&gt;In first code, connect to db2 statement comes after the selection of variables whereas in other code,&amp;nbsp;&lt;SPAN&gt;connect to db2 statement comes before selection of variables&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 10:58:28 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-09-25T10:58:28Z</dc:date>
    <item>
      <title>Diff between the codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498684#M132587</link>
      <description>&lt;P&gt;Could you please guide me understand what each code does? can I understand that technically both the codes are selecting the variables from DB2 table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select distinct createdbylogonuserid, left(trim(lastname))||' '||left(trim(firstname)) as creator, creator_duser
from connection to db2(
select 	b.identifier as ......&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another one is,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from connection to db2(
select x.policyinstanceid , x.customerID, y.value as client_segment&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498684#M132587</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-09-25T09:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498687#M132590</link>
      <description>&lt;P&gt;What do you want explained, it seems to be as basic as it gets.&amp;nbsp; First one is creating a distinct list of strings with the two parts and a space.&amp;nbsp; The second selects from variables.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 10:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498687#M132590</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-25T10:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498691#M132592</link>
      <description>&lt;P&gt;In first code, connect to db2 statement comes after the selection of variables whereas in other code,&amp;nbsp;&lt;SPAN&gt;connect to db2 statement comes before selection of variables&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 10:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498691#M132592</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-09-25T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498699#M132595</link>
      <description>&lt;P&gt;They are much the same, you can use either, refer to the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001348730.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001348730.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only select from in the these mostly, and possibly insert into, but for other operations you will want a third type of syntax which is: execute by db (...);&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498699#M132595</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-25T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498705#M132599</link>
      <description>&lt;P&gt;One thing that is difference is that the first code selects a users list of variables and the second code selects all variables in the table.&lt;/P&gt;&lt;P&gt;while the 2 codes may provide the same information, it is hard to tell with not sample data tables for this code.&lt;/P&gt;&lt;P&gt;another difference is the enter selection which is incomplete in the sample are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 codes may provide the same results but user beware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Know your data, we were given no data to evaluate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 11:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diff-between-the-codes/m-p/498705#M132599</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-25T11:51:30Z</dc:date>
    </item>
  </channel>
</rss>

