<?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: Working with Delimit in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83156#M7980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use Enterprise Guide, you can follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From" File" in the tool Bar , select "Import Data",&amp;nbsp; &lt;/P&gt;&lt;P&gt;Click "Text Format "&amp;nbsp; , select "Delimited" in the format and select "Space" in the&amp;nbsp; Delimiter&lt;/P&gt;&lt;P&gt;Click Run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 14:54:44 GMT</pubDate>
    <dc:creator>QLi</dc:creator>
    <dc:date>2012-06-14T14:54:44Z</dc:date>
    <item>
      <title>Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83155#M7979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to seek some help and solutions through this discussion thread. &lt;BR /&gt;Currently, i am working on a column with the content for teacher's comment.&lt;/P&gt;&lt;P&gt;Then i would like to delimit it by the space or comma or punctuation marks between words inside the content.&lt;/P&gt;&lt;P&gt;At the same time , i would like to take out each of the words in the content and then place them into rows instead of columns .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example . &lt;BR /&gt;Catherine is a good girl . -&amp;gt; This is the teacher's comment.&lt;/P&gt;&lt;P&gt;After delimit and placing them into rows in SAS dataset , it would look like this in 5 rows :&lt;BR /&gt;Catherine&lt;BR /&gt;is&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;girl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Cody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83155#M7979</guid>
      <dc:creator>cody_q</dc:creator>
      <dc:date>2012-06-14T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83156#M7980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use Enterprise Guide, you can follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From" File" in the tool Bar , select "Import Data",&amp;nbsp; &lt;/P&gt;&lt;P&gt;Click "Text Format "&amp;nbsp; , select "Delimited" in the format and select "Space" in the&amp;nbsp; Delimiter&lt;/P&gt;&lt;P&gt;Click Run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83156#M7980</guid>
      <dc:creator>QLi</dc:creator>
      <dc:date>2012-06-14T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83157#M7981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QLi's approach should put each word into its own variable (you may need to add the MISSOVER option to allow for different number of words in each comment).&amp;nbsp; You can then use the transpose task (tasks --&amp;gt; data --&amp;gt; transpose) to get the words into rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83157#M7981</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-06-14T15:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83158#M7982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doc Muhlbaier and QLi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After putting each word into its own variable, how do I put the few rows into one column instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&lt;/P&gt;&lt;P&gt;d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&lt;/P&gt;&lt;P&gt;g&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;e&lt;/P&gt;&lt;P&gt;f&lt;/P&gt;&lt;P&gt;g&lt;/P&gt;&lt;P&gt;h&lt;/P&gt;&lt;P&gt;i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 01:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83158#M7982</guid>
      <dc:creator>cody_q</dc:creator>
      <dc:date>2012-06-15T01:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83159#M7983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input comments $ :15. @@;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;Catherine is a good girl&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;input one $ two $ three $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&lt;/P&gt;&lt;P&gt;d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&lt;/P&gt;&lt;P&gt;g&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set two;&lt;/P&gt;&lt;P&gt;array xx[3] one two three;&lt;/P&gt;&lt;P&gt;do i=1 to dim(xx);&lt;/P&gt;&lt;P&gt;if xx&lt;I&gt; ne '' then yy=xx&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop one--three i;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 05:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83159#M7983</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-06-15T05:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83160#M7984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivas,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply. I have tried it and it worked.&lt;BR /&gt;However, my concern is that the data which I am using is of a large scale (2000 of values) &lt;BR /&gt;Do you have any way which I could work around it ?&lt;BR /&gt;Is there a way to import the file which it will automatically change to the 1 column , many rows output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Cody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 05:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83160#M7984</guid>
      <dc:creator>cody_q</dc:creator>
      <dc:date>2012-06-15T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83161#M7985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivas,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply. I have tried it and it worked.&lt;BR /&gt;However, my concern is that the data which I am using is of a large scale (2000 of values) &lt;BR /&gt;Do you have any way which I could work around it ?&lt;BR /&gt;Is there a way to import the file which it will automatically change to the 1 column , many rows output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Cody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 06:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83161#M7985</guid>
      <dc:creator>cody_q</dc:creator>
      <dc:date>2012-06-15T06:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Delimit in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83162#M7986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename in_file 'your_text_file' lrecl=32767;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* split words separated by spaces */&lt;BR /&gt;data in_file;&lt;BR /&gt; infile in_file length=l;&lt;BR /&gt; length word_nospace $50.;&lt;BR /&gt; keep word_nospace;&lt;BR /&gt;&amp;nbsp; input record $varying32767. l;&lt;BR /&gt;&amp;nbsp; delims=count(trim(record), ' ')+1;&lt;BR /&gt;&amp;nbsp; do i=1 to delims;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; word_nospace=scan(record, i, ' ');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* split words separated by commas */&lt;BR /&gt;data in_file;&lt;BR /&gt; set in_file;&lt;BR /&gt; keep word_nocomma;&lt;BR /&gt;&amp;nbsp; delims=count(word_nospace, ',')+1;&lt;BR /&gt;&amp;nbsp; do i=1 to delims;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; word_nocomma=scan(word_nospace, i, ',');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if not missing(word_nocomma) then output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 14:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Working-with-Delimit-in-SAS-EG/m-p/83162#M7986</guid>
      <dc:creator>p12937</dc:creator>
      <dc:date>2012-06-20T14:19:33Z</dc:date>
    </item>
  </channel>
</rss>

