<?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 DI Studio: Char to Numeric Expression in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137120#M2050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(New DI Studio Developer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Morning, All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got some character column in the input table that I need to output as numerics. In the output mapping, I'm attempting: INPUT([ColumnName],8.) but with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it _might_ be because some of the input character columns have dollar values with dollar signs ('$'). So, I suppose my expression would need to pull those dollar signs out as well as it converts the character to numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...does anyone see anything wrong with my initial expression and how could I also pull out dollar signs when necessary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 15:56:14 GMT</pubDate>
    <dc:creator>jwhite</dc:creator>
    <dc:date>2014-09-09T15:56:14Z</dc:date>
    <item>
      <title>DI Studio: Char to Numeric Expression</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137120#M2050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(New DI Studio Developer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Morning, All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got some character column in the input table that I need to output as numerics. In the output mapping, I'm attempting: INPUT([ColumnName],8.) but with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it _might_ be because some of the input character columns have dollar values with dollar signs ('$'). So, I suppose my expression would need to pull those dollar signs out as well as it converts the character to numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...does anyone see anything wrong with my initial expression and how could I also pull out dollar signs when necessary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 15:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137120#M2050</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-09-09T15:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Char to Numeric Expression</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137121#M2051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I presume that you mean by no success that you are getting missing values?&lt;/P&gt;&lt;P&gt;If you have a columns that "always" has dollar signs, try to use the dollar informat.&lt;/P&gt;&lt;P&gt;Otherwise, try to compress() or substr() the column to get rid of unwanted chars before input() it to numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137121#M2051</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-09-09T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Char to Numeric Expression</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137122#M2052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry. To clarify...'no success' means that the extraction node runs successfully, but when I go to open the workfile I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DIStudio_error.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7355_DIStudio_error.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Here's my attempt to use the INPUT():&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DIStudio_input.PNG" class="jive-image-thumbnail jive-image" height="49" src="https://communities.sas.com/legacyfs/online/7356_DIStudio_input.PNG" style="width: 786px; height: 48.853591160220994px;" width="786" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMPRESS(INPUT(Fall_State_Salary,8.),'$') wasn't successful either. I received an error message upon trying to open the workfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137122#M2052</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-09-09T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Char to Numeric Expression</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137123#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it looks like I resolved the above error message issue, and am now able to view the workfile. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am getting empty columns for those that would have dollar signs and using the COMMAw.d format is solving that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the following expression works for my purpose: INPUT([column_name],comma8.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm considering this resolved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 18:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Char-to-Numeric-Expression/m-p/137123#M2053</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-09-09T18:06:23Z</dc:date>
    </item>
  </channel>
</rss>

