<?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: problems with formatting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242691#M45067</link>
    <description>Try without 41, only $tdrug.</description>
    <pubDate>Mon, 11 Jan 2016 12:53:35 GMT</pubDate>
    <dc:creator>EH</dc:creator>
    <dc:date>2016-01-11T12:53:35Z</dc:date>
    <item>
      <title>problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242680#M45057</link>
      <description>&lt;P&gt;I have a variable which has format $TDRUG41. and informat $41.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to filter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data ind;&lt;BR /&gt; set girdata;&lt;BR /&gt; if drug_id="DRUG 2";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow this is not working. Can anyone help me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242680#M45057</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-01-11T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242682#M45059</link>
      <description>&lt;P&gt;Hello vraj1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably "DRUG 2" is one of the formatted values of drug_id.&lt;/P&gt;
&lt;P&gt;In that case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if put(drug)id, $tdrug41.) = 'DRUG 2";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise please attach a small piece of the data and code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242682#M45059</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2016-01-11T12:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242683#M45060</link>
      <description>&lt;P&gt;The code which you had sent is not working somehow. It is running from 10 mins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242683#M45060</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-01-11T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242685#M45062</link>
      <description>Maybe because of my typo using different quote symbols :-(. It should be ' ' or " ". Sorry...</description>
      <pubDate>Mon, 11 Jan 2016 12:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242685#M45062</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2016-01-11T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242686#M45063</link>
      <description>and another typo which you must have seen, drug_id... Not my day today &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242686#M45063</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2016-01-11T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242687#M45064</link>
      <description>&lt;P&gt;No &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; i corrected it but still.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if put(drug_id, $tdrug41.) = "Biphasic Insulin Aspart 30";&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242687#M45064</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-01-11T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242688#M45065</link>
      <description>&lt;P&gt;Maybe you can add a few lines of data and also a few lines of the format definition. It may be something like variable length of uppercase/lowercase. Dirty work...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242688#M45065</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2016-01-11T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242690#M45066</link>
      <description>&lt;P&gt;&lt;BR /&gt;data ind;&lt;BR /&gt; set girdata;&lt;BR /&gt; *if drug_id="Biphasic Insulin Aspart 30";&lt;BR /&gt; if put(drug_id, $tdrug41.) = "Biphasic Insulin Aspart 30";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12179iB6E08D0EF1AA2F72/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture11.JPG" title="Capture11.JPG" /&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242690#M45066</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-01-11T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242691#M45067</link>
      <description>Try without 41, only $tdrug.</description>
      <pubDate>Mon, 11 Jan 2016 12:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242691#M45067</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2016-01-11T12:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242692#M45068</link>
      <description>&lt;P&gt;yes it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242692#M45068</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-01-11T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: problems with formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242693#M45069</link>
      <description>&lt;P&gt;Just want to add two points to this. &amp;nbsp;Firstly, if&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24420"&gt;@EH﻿&lt;/a&gt;&amp;nbsp;solution worked, its good form to mark his post as the result, both so other people can see the solution and so he gets some points for the effort. &amp;nbsp;Secondly, why are you attempting to find a drug name via formats? &amp;nbsp;If you need to use drug information you are far better off using coded data using WHO Drug coding. &amp;nbsp;I would be suprised if you didn't have this autoencoding on the database. &amp;nbsp;It allows you to find specific drugs/drug groups regardless of typos in the data, different product names etc. &amp;nbsp;your example for instance could be&amp;nbsp;&lt;SPAN&gt;Biphasic Insulin Aspart, your code wouldn't pick it up. &amp;nbsp;Also, you then need to separately maintain your formats catalog, i.e. re-inventing the wheel.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problems-with-formatting/m-p/242693#M45069</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-11T13:28:32Z</dc:date>
    </item>
  </channel>
</rss>

