<?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 Why i am missing 15k columns? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449348#M29072</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i am creating tables with some prompts...in these steps i´m creating some variables with :INTO and with them the output table gets created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am "clicking" my way to the output table i get about 22M columns, but with my code version i get 22M minus 15k.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I compared the &lt;STRONG&gt;"clicked" code&lt;/STRONG&gt; with my code via &lt;STRONG&gt;prompts and code&lt;/STRONG&gt;, its the same code @ the end (checked it with %put).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a simple code&lt;/P&gt;&lt;PRE&gt;CREATE TABLE work... as

SELECT t1.columns
       t2.columns
              from work.x t1
              LEFT JOIN y t2 ON (t1.key = t2.key)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like i said, i compared the clicked code with sas eg with my written...at the end its the same, but i´m missing 15k on colums.&lt;/P&gt;&lt;P&gt;The output data is i think the same, i compared some rows...(btw is there a function, where i can compare 2 Tables, if the data is the same?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So...why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 14:39:08 GMT</pubDate>
    <dc:creator>JonDo</dc:creator>
    <dc:date>2018-03-28T14:39:08Z</dc:date>
    <item>
      <title>Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449348#M29072</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i am creating tables with some prompts...in these steps i´m creating some variables with :INTO and with them the output table gets created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am "clicking" my way to the output table i get about 22M columns, but with my code version i get 22M minus 15k.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I compared the &lt;STRONG&gt;"clicked" code&lt;/STRONG&gt; with my code via &lt;STRONG&gt;prompts and code&lt;/STRONG&gt;, its the same code @ the end (checked it with %put).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a simple code&lt;/P&gt;&lt;PRE&gt;CREATE TABLE work... as

SELECT t1.columns
       t2.columns
              from work.x t1
              LEFT JOIN y t2 ON (t1.key = t2.key)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like i said, i compared the clicked code with sas eg with my written...at the end its the same, but i´m missing 15k on colums.&lt;/P&gt;&lt;P&gt;The output data is i think the same, i compared some rows...(btw is there a function, where i can compare 2 Tables, if the data is the same?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So...why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449348#M29072</guid>
      <dc:creator>JonDo</dc:creator>
      <dc:date>2018-03-28T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449363#M29073</link>
      <description>&lt;P&gt;You mean 15K rows right? 22M columns would be unmanageable...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the full code from each query and the log. With the basic of what you've shown there's no real way to tell the difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use PROC COMPARE to data sets, or Tasks&amp;gt;Data&amp;gt;Compare to compare two data sets.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201634"&gt;@JonDo&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;i am creating tables with some prompts...in these steps i´m creating some variables with :INTO and with them the output table gets created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i am "clicking" my way to the output table i get about 22M columns, but with my code version i get 22M minus 15k.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I compared the &lt;STRONG&gt;"clicked" code&lt;/STRONG&gt; with my code via &lt;STRONG&gt;prompts and code&lt;/STRONG&gt;@, its the same code @ the end (checked it with %put).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its a simple code&lt;/P&gt;
&lt;PRE&gt;CREATE TABLE work... as

SELECT t1.columns
       t2.columns
              from work.x t1
              LEFT JOIN y t2 ON (t1.key = t2.key)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like i said, i compared the clicked code with sas eg with my written...at the end its the same, but i´m missing 15k on colums.&lt;/P&gt;
&lt;P&gt;The output data is i think the same, i compared some rows...(btw is there a function, where i can compare 2 Tables, if the data is the same?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So...why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449363#M29073</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-28T14:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449364#M29074</link>
      <description>&lt;P&gt;The maximum number of variables in SAS Datasets depends &lt;SPAN&gt;on your environment and the file's attributes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449364#M29074</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-28T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449517#M29078</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201634"&gt;@JonDo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Just as something eventually worth trying: I believe some of the prompts are quoting the parameter values (using these non-printable SAS quoting hex value). It might be worth to add %unquote() functions around the macros in your code and see if this resolves the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the SQL EXCEPT operator to get rows which are unique to your table with more records.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001361224.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001361224.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449517#M29078</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-28T21:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449519#M29079</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Why i am missing 15k columns&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you really have over 15 thousand columns in your data set? That would be almost impossible to work with.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;creating some variables with :INTO&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what this means. The INTO clause in PROC SQL is used to create MACRO variables. Note that macro variables can contain at the most 64K bytes.&amp;nbsp; So if you are trying to put 15 thousand variable names into a macro variable it will probably run out of room.&lt;/P&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>Wed, 28 Mar 2018 21:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449519#M29079</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-28T21:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am missing 15k columns?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449522#M29080</link>
      <description>&lt;P&gt;My first suspect would be that one or both&amp;nbsp;of the source tables changed size somewhere between your two tests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 22:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Why-i-am-missing-15k-columns/m-p/449522#M29080</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-28T22:05:20Z</dc:date>
    </item>
  </channel>
</rss>

