<?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: wide column to small in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197836#M305476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array words(2) _temporary_ {'bladder', 'cancer'};&lt;/P&gt;&lt;P&gt;array search(2) bladder cancer {2*0};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i=1 to dim(words);&lt;/P&gt;&lt;P&gt;if find(string, words(i))&amp;gt;0 then search(i)=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 17:41:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-04-16T17:41:05Z</dc:date>
    <item>
      <title>wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197833#M305473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a wide column in my dataset that contain more information that I don't need except one word of it and would like to create another column that's a subset of the wide column and keep only a few words that I'm interested like bladder. see below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;column1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Small hiatal hernia. 8mm low-attenuation lesion in the left lobe of &lt;/P&gt;&lt;P&gt;the liver anteriorly (series 2, image 16) is unchanged and most likely&lt;/P&gt;&lt;P&gt;represents a benign cyst or hemangioma. Stable left renal cyst. &lt;/P&gt;&lt;P&gt;Atherosclerotic vascular calcifications including coronary artery &lt;/P&gt;&lt;P&gt;calcifications. Foley catheter in the bladder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Newcolumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bladder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 16:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197833#M305473</guid>
      <dc:creator>amahamud77</dc:creator>
      <dc:date>2015-04-16T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197834#M305474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that each set of words under column1 is a unique observation and that you have a list of words that you're searching for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up a temporary array that holds the words&lt;/P&gt;&lt;P&gt;Set up a second array that flags the presence of the words&lt;/P&gt;&lt;P&gt;Use a do loop to process the list and check for the presence of the words using the index or find function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 16:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197834#M305474</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-16T16:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197835#M305475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza for responding my question. I'm not good on array queries. Can you please explain more how to query this? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197835#M305475</guid>
      <dc:creator>amahamud77</dc:creator>
      <dc:date>2015-04-16T17:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197836#M305476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array words(2) _temporary_ {'bladder', 'cancer'};&lt;/P&gt;&lt;P&gt;array search(2) bladder cancer {2*0};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i=1 to dim(words);&lt;/P&gt;&lt;P&gt;if find(string, words(i))&amp;gt;0 then search(i)=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197836#M305476</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-16T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197837#M305477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;a='Small hiatal hernia. 8mm low-attenuation lesion in the left lobe of&lt;/P&gt;&lt;P&gt;the liver anteriorly (series 2, image 16) is unchanged and most likely&lt;/P&gt;&lt;P&gt;represents a benign cyst or hemangioma. Stable left renal cyst.&lt;/P&gt;&lt;P&gt;Atherosclerotic vascular calcifications including coronary artery&lt;/P&gt;&lt;P&gt;calcifications. Foley catheter in the bladder';&lt;/P&gt;&lt;P&gt;b=prxchange('s/.*(\bbladder\b).*/$1/i',-1,a);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197837#M305477</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-17T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197838#M305478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of how to solve this problem with a number of approaches, including one from our friend &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1717-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/1717-2014.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original thread is titled `Scanning an Observation for a Word within a Variable`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 21:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197838#M305478</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-04-20T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197839#M305479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; Thank you to mention me . My real name is Xia Ke Shan . Ksharp is my nickname because I love CS and A member from 3D team which name is Ksharp (I steal it from him) is who I really respected, His sharpshooter skill is really what I want .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197839#M305479</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-21T12:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: wide column to small</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197840#M305480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of interest, what is the reasoning behind this.&amp;nbsp; If I was looking at this kind of information I would want to have it coded by a professional using standards such as MedDRA, rather than trying to find words in a string.&amp;nbsp; Even accounting for spellings might get tricky, let alone medical terminolgy of things. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-column-to-small/m-p/197840#M305480</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-21T12:26:44Z</dc:date>
    </item>
  </channel>
</rss>

