<?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: Creating a New Data Table With Proc SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198934#M49693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for all of the helpful answers &amp;amp; suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 15:58:27 GMT</pubDate>
    <dc:creator>Zachary</dc:creator>
    <dc:date>2015-06-04T15:58:27Z</dc:date>
    <item>
      <title>Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198927#M49686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc sql noprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; create table TextForAnalysis as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; select distinct TextCommentsColumn into :TextFromExcel separated by ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from TextSingleColumn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%put &amp;amp;=TextFromExcel &amp;amp;=sqlobs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get two warnings. 1. Apparent Symbolic Reference TextFromExcel not resolved &amp;amp; 2. into clause ignored in the create table statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, everything looks ok in terms of the creation of the TextForAnalysis table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to tighten it up a bit - any and all help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198927#M49686</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2015-06-03T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198928#M49687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove&amp;nbsp; Create table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198928#M49687</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-03T13:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198929#M49688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to create a macro variable not a table. As, Xia mentioned remove the create table. Also this requires a small modification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%put &amp;amp;TextFromExcel &amp;amp;sqlobs;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198929#M49688</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2015-06-03T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198930#M49689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to the above, why would you want to put textfromexcel into a macro variable.&amp;nbsp; This could create a vast string, and macro processing of lists is to my mind not suited to lists.&amp;nbsp; Why not just keep the distinct values in a table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198930#M49689</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-06-03T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198931#M49690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. Now I am confused - had no intention at all of creating a macro variable. My intention was to take a table of about 4,000 words that have duplicates and remove the duplicates with the proc sql code. What I would be left with is an alphabetized list of unique words - should come to around 1,000+.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198931#M49690</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2015-06-03T14:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198932#M49691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your dataset TEXTSINGLECOLUMN look like, is it a dataset of one word per row with duplicates?&lt;/P&gt;&lt;P&gt;If you need to separate the words into rows thats a different issue - not quite suited to SQL in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;proc sql noprint;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; create table TextForAnalysis as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; select distinct TextCommentsColumn &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from TextSingleColumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by textcommentscolumn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198932#M49691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-03T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198933#M49692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you don't need this bit of code: &lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; background-color: #ffffff;"&gt;into :TextFromExcel separated by ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198933#M49692</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-06-03T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a New Data Table With Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198934#M49693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for all of the helpful answers &amp;amp; suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-New-Data-Table-With-Proc-SQL/m-p/198934#M49693</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2015-06-04T15:58:27Z</dc:date>
    </item>
  </channel>
</rss>

