<?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: Cross join within a Table in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394155#M25393</link>
    <description>&lt;P&gt;Printmiss would be the equivalent in Proc Tabulate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=have out=want2(keep=letter numb);
class letter numb;
tables letter*numb / printmiss;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Sep 2017 08:52:36 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-09-08T08:52:36Z</dc:date>
    <item>
      <title>Cross join within a Table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394143#M25390</link>
      <description>&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;B &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;BR /&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;D &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data in this format where the values of row is not fixed and can take any value but at the end I want them in the order where for each value of column A there is all the possible values that column B can take i.e. 1 2 3 and if a column like that of D doesn't have sufficient values of B then I want to add tow additional values for D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do that..??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to apply cross join within a single table and if yes will that help..??&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 07:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394143#M25390</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-09-08T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cross join within a Table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394149#M25391</link>
      <description>&lt;P&gt;You can do this with Proc Fr&lt;SPAN&gt;eq - it might be more efficient than an explicit Cross Join on a very large table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	length letter $1;
	infile datalines;
	input letter $ numb;
	datalines;
A      1
A      2
A      3
B      1
B      2
B      3
C      1
C      2
C      3
D      1
;
run;

proc freq data=have noprint;
tables letter*numb/sparse out=want(drop=count percent);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394149#M25391</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-08T08:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cross join within a Table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394152#M25392</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt;&amp;nbsp;Is is possible with proc tabulate also. I mean is there any function like sparse available with Proc Tabulate also..??&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394152#M25392</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-09-08T08:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cross join within a Table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394155#M25393</link>
      <description>&lt;P&gt;Printmiss would be the equivalent in Proc Tabulate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=have out=want2(keep=letter numb);
class letter numb;
tables letter*numb / printmiss;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Cross-join-within-a-Table/m-p/394155#M25393</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-08T08:52:36Z</dc:date>
    </item>
  </channel>
</rss>

