<?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: Determining which values of variable are formatted differently in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419366#M280471</link>
    <description>&lt;P&gt;It's probably obvious&amp;nbsp;that reimporting/fixing data at the source is the ideal solution, which should be relatively easy since it's a program. Then you just re-run the remaining portion of your programs.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 21:41:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-12-07T21:41:06Z</dc:date>
    <item>
      <title>Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419358#M280466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset that was populated with multiple sources of data.&amp;nbsp; I have a percentage variable formatted differently due to the way they were formatted in the original datasets.&amp;nbsp; I would like an easy way to compare the different values of a variable to see which of them I need to reformat.&amp;nbsp; For example, in the original data source, I may have a value which is a percentage that&amp;nbsp; has a value of 4.25% formatted as .0425 or incorrectly at .00425.&amp;nbsp; That is just one example.&amp;nbsp; I need to compare and possibly be able to see all of the differences in format of that variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to do this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419358#M280466</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-12-07T21:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419360#M280467</link>
      <description>&lt;P&gt;If you can specify rules, yes. If not, then no.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you know if it's really 0.045 or should be 0.0045?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419360#M280467</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-07T21:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419361#M280468</link>
      <description>Because I created the data in the multiple original sources. When I converted it from excel, I may have divided by a bigger factor of the data than I needed too. Some original data may have not even needed to be divided at all but I didn't catch this until all of the data was merged together in a new dataset.</description>
      <pubDate>Thu, 07 Dec 2017 21:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419361#M280468</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-12-07T21:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419362#M280469</link>
      <description>&lt;P&gt;I would:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Redo my merge/append and make sure to identify teh source files. It's likely the files are all the same, e.g if a variable is messed up for FileA, it's messed up for all the records in FileA for a particular variable. If you appended, you can use the INDSNAME option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Eyeball the data or do a histogram and isolate values with the file source. You'll likely be able to pick out the issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless there's a rule that you can define, such as if percent is &amp;lt; 0.001 then it's wrong then I'm not sure how you would identify those records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419362#M280469</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-07T21:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419364#M280470</link>
      <description>Great, let me look into that and I will let you know. Thanks for the quick reply.</description>
      <pubDate>Thu, 07 Dec 2017 21:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419364#M280470</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-12-07T21:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419366#M280471</link>
      <description>&lt;P&gt;It's probably obvious&amp;nbsp;that reimporting/fixing data at the source is the ideal solution, which should be relatively easy since it's a program. Then you just re-run the remaining portion of your programs.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419366#M280471</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-07T21:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Determining which values of variable are formatted differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419368#M280472</link>
      <description>&lt;P&gt;Yes, that would definitely be easiest.&amp;nbsp; It is a lot of code to sift through and over 50 datasets would have to be appended back together for the new dataset.&amp;nbsp; I was trying to avoid that by doing a quick update but that doesn't look likely at this point.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-which-values-of-variable-are-formatted-differently/m-p/419368#M280472</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2017-12-07T21:45:25Z</dc:date>
    </item>
  </channel>
</rss>

