<?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: How to interleave two unrelated data? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432338#M107073</link>
    <description>&lt;P&gt;cross join.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

create table want as
select *
from a
cross join b
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Jan 2018 16:59:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-30T16:59:20Z</dc:date>
    <item>
      <title>How to interleave two unrelated data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432335#M107070</link>
      <description>&lt;P&gt;How to create (is it interleaving problem?) data 'want' from two unrelated data as shown below? In my real data context, the first dataset has 836 unique rows where I'd like to link the second dataset of 210 rows to each row. Sum of resulting number of rows in 'want' dataset would then become n=175,560.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
input ob1;
datalines;
1
2
3
;

data have2;
input ob2;
datalines;
8
9
;

data want;
input ob1 ob2;
datalines;
1 8
1 9
2 8
2 9
3 8
3 9
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 16:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432335#M107070</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-30T16:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to interleave two unrelated data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432337#M107072</link>
      <description>Doesn't sound like interleaving as I know it. &lt;BR /&gt;You simple want to create a Cartesian product, do a SQL join without specifying a join criteria.</description>
      <pubDate>Tue, 30 Jan 2018 16:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432337#M107072</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-01-30T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to interleave two unrelated data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432338#M107073</link>
      <description>&lt;P&gt;cross join.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

create table want as
select *
from a
cross join b
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2018 16:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interleave-two-unrelated-data/m-p/432338#M107073</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-30T16:59:20Z</dc:date>
    </item>
  </channel>
</rss>

