<?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: interleaving in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526590#M143441</link>
    <description>&lt;P&gt;Can you elaborate? In what context are you in doubt of the term 'interleave'?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jan 2019 13:48:22 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-01-12T13:48:22Z</dc:date>
    <item>
      <title>interleaving in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526587#M143438</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;What is interleaving in SAS?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 11:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526587#M143438</guid>
      <dc:creator>anjita</dc:creator>
      <dc:date>2019-01-12T11:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: interleaving in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526590#M143441</link>
      <description>&lt;P&gt;Can you elaborate? In what context are you in doubt of the term 'interleave'?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 13:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526590#M143441</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-12T13:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: interleaving in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526594#M143444</link>
      <description>&lt;P&gt;Interleaving refers to a DATA step that uses:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a SET statement with more than one data set&lt;/LI&gt;
&lt;LI&gt;a BY statement.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set a b;&lt;/P&gt;
&lt;P&gt;by id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The incoming data sets must all be in sorted order (by ID in this case), and the output will also be in sorted order.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 14:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526594#M143444</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-12T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: interleaving in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526599#M143448</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's a comparison of 2 techniques:&lt;/P&gt;
&lt;P&gt;1) Concatenation of the data, then sorting&lt;/P&gt;
&lt;P&gt;2) Using 2 (or more) SET statements with BY group processing.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="about_interleave.png" style="width: 489px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26227iE0B4F5136444C38D/image-size/large?v=v2&amp;amp;px=999" role="button" title="about_interleave.png" alt="about_interleave.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 15:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/526599#M143448</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-12T15:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: interleaving in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/527226#M143693</link>
      <description>&lt;P&gt;Interleaving combines individual, sorted SAS data sets into one sorted&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="https://data-flair.training/blogs/sas-tutorial/" target="_blank"&gt;SAS&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data set. For each observation, the following figure shows the value of the variable by which the data sets are sorted. You interleave data sets using a SET statement along with a BY statement.&lt;BR /&gt;In the following example, the data sets are sorted by the variable Year.&lt;BR /&gt;We can sort and then join the datasets on Year with the below code.&lt;/P&gt;&lt;DIV class="EnlighterJSWrapper enlighterEnlighterJSWrapper"&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Data combined;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Set data1 data2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;By Year;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Run;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jan 2019 07:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interleaving-in-SAS/m-p/527226#M143693</guid>
      <dc:creator>rinugour</dc:creator>
      <dc:date>2019-01-15T07:01:56Z</dc:date>
    </item>
  </channel>
</rss>

