<?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 DATA STEP in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302880#M20542</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering what below step actually does&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data strat.rep_raised_resolved;&lt;BR /&gt;set strat.rep_raised_resolved strat.rep_raised_resolvedtotal;&lt;BR /&gt;if portfolio = '' then portfolio="TOTAL";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it merge or union or full outer join or something else ? Can we relate it with any PROC SQL ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice us here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2016 09:25:27 GMT</pubDate>
    <dc:creator>yudhishtirb</dc:creator>
    <dc:date>2016-10-06T09:25:27Z</dc:date>
    <item>
      <title>DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302880#M20542</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering what below step actually does&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data strat.rep_raised_resolved;&lt;BR /&gt;set strat.rep_raised_resolved strat.rep_raised_resolvedtotal;&lt;BR /&gt;if portfolio = '' then portfolio="TOTAL";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it merge or union or full outer join or something else ? Can we relate it with any PROC SQL ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice us here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302880#M20542</guid>
      <dc:creator>yudhishtirb</dc:creator>
      <dc:date>2016-10-06T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302883#M20545</link>
      <description>&lt;P&gt;This isn't really a question. &amp;nbsp;You may want to learn SAS so you understand some of these basics.&lt;/P&gt;
&lt;P&gt;For your code, it is doing two things:&lt;/P&gt;
&lt;P&gt;1) it is setting the three datasets:&amp;nbsp;&lt;SPAN&gt;strat.rep_raised_resolved strat.rep_raised_resolvedtotal, underneath each other starting from the left. &amp;nbsp;A bit like a union all statement in SQL, except that set expands the final dataset to incorperate all the variables found across the three datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) An if logic block decides if the variable portfolio is empty ('') and if so populates it with the string "TOTAL".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302883#M20545</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-06T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302884#M20546</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is a "union all". The result dataset will contain all observation of both datasets.</description>
      <pubDate>Thu, 06 Oct 2016 09:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302884#M20546</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-10-06T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302886#M20547</link>
      <description>&lt;P&gt;Just to add, its not quite a union all (unless by happenstance all datasets have the same structure). &amp;nbsp;Union all will fail if any of the datasets have more or less columns, and do implcit length alterations if needed. &amp;nbsp;Set will fail if datatypes are different for existing columns.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302886#M20547</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-06T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: DATA STEP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302929#M20548</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to add - &lt;STRONG&gt;union &lt;/STRONG&gt;will also fail if datatypes are different for the same column&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 13:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DATA-STEP/m-p/302929#M20548</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-10-06T13:06:16Z</dc:date>
    </item>
  </channel>
</rss>

