<?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: Dataflux - Reading Strings as Integer fields in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315316#M9020</link>
    <description>&lt;P&gt;Ok Andrew!!&lt;/P&gt;&lt;P&gt;Would you know where can I find any kind of documentation about this flield type transformation?&lt;BR /&gt;i.e. between Integer, Strings, Real, Boolean, etc...&lt;BR /&gt;&lt;BR /&gt;Thank´s a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 19:27:02 GMT</pubDate>
    <dc:creator>LuisLeiteBR</dc:creator>
    <dc:date>2016-11-29T19:27:02Z</dc:date>
    <item>
      <title>Dataflux - Reading Strings as Integer fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/313564#M8974</link>
      <description>&lt;P&gt;Hello Everybody!&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using Dataflux DMStudio 2.6 to read those values below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"asString";"asInteger"&lt;BR /&gt;"A001127209";"A001127209"&lt;BR /&gt;"000379043B";"000379043B"&lt;BR /&gt;"00085351C6";"00085351C6"&lt;BR /&gt;"0014479443";"0014479443"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case A. Reading from&amp;nbsp;a txt file containing that lines:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I read the first column (Field Name asString) as an STRING(10) field type, and the second column as an INTEGER(10) field type.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5951i3B6424D95E8E01E2/image-size/original?v=v2&amp;amp;px=-1" alt="000.PNG" title="000.PNG" border="0" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In that case, when I preview the data the results are:&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5952iF2AD89726035A15C/image-size/original?v=v2&amp;amp;px=-1" alt="001.PNG" title="001.PNG" border="0" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 - Generates a "0" result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 - Preserve only the left significative numeric characters (379043),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 - Preserve only the left significative numeric characters (85351),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 - Preserve&amp;nbsp;only the left significative numeric characters, in that case, the real value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Case B. Reading as a Job Specific Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5953iF5B0366F34121EE6/image-size/original?v=v2&amp;amp;px=-1" alt="002.PNG" title="002.PNG" border="0" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case, when I preview the data the results are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5954iFFB6458F847C2731/image-size/original?v=v2&amp;amp;px=-1" alt="004.PNG" title="004.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 - Generates a "null" result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 - Preserve only the left significative numeric characters (379043),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 - Preserve only the left significative numeric characters (85351),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 - Preserve&amp;nbsp;only the left significative numeric characters, in that case, the real value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I´d like to understand:&lt;BR /&gt;&lt;BR /&gt;a) Why Dataflux accepts an alphanumeric&amp;nbsp;value&amp;nbsp;(even part of it) as a input of an Integer field?&amp;nbsp;&lt;BR /&gt;b) Why not treat all alphanumeric strings as "null" results?&lt;BR /&gt;c) Why Dataflux treats the first string in different ways when reading a file and for Job Specific Data ( "0" x "null" )?&lt;BR /&gt;d) &lt;SPAN&gt;Where can I find documentation for content transformation between different field types?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I welcome any information that helps to clarify this situation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you all.&lt;BR /&gt;&lt;BR /&gt;Luís Leite&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 13:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/313564#M8974</guid>
      <dc:creator>LuisLeiteBR</dc:creator>
      <dc:date>2016-11-25T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux - Reading Strings as Integer fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315187#M9018</link>
      <description>&lt;P&gt;Luis,what you have identified is unfortunately some disparate behaviour between these two components. It would be good if they behaved the same, but unfortunately they do not. The text file node will read until the first non-numeric character, and the job specific data will issue null if it finds a non-numeric value. It's possible that this will be fixed in a future version.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 14:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315187#M9018</guid>
      <dc:creator>andrew_s</dc:creator>
      <dc:date>2016-11-29T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux - Reading Strings as Integer fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315316#M9020</link>
      <description>&lt;P&gt;Ok Andrew!!&lt;/P&gt;&lt;P&gt;Would you know where can I find any kind of documentation about this flield type transformation?&lt;BR /&gt;i.e. between Integer, Strings, Real, Boolean, etc...&lt;BR /&gt;&lt;BR /&gt;Thank´s a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 19:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315316#M9020</guid>
      <dc:creator>LuisLeiteBR</dc:creator>
      <dc:date>2016-11-29T19:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux - Reading Strings as Integer fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315327#M9021</link>
      <description>Luis, the documentation does not appear to be too detailed in this regard. This is some information from the code which generally applies to these types of transformations (and as you have noted, there seems to be an exception in the Job Specific Data node):&lt;BR /&gt;String -&amp;gt; integer - Read the first characters until a non-numeric value is found. The integer is the digits read.&lt;BR /&gt;String-&amp;gt; Real - Same as integer, but allows a decimal point (Which must be a '.' Character)&lt;BR /&gt;String -&amp;gt; Date - String is parsed, and the components are analyzed. If there is ambiguity between month and day, it will either use what you specify (ie in text input or job specific data node) or it will use your locale setting.&lt;BR /&gt;String -&amp;gt; Boolean - Will look for values true, t, yes, y, on to represent true and false, f, no, n, off to represent false&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2016 20:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/315327#M9021</guid>
      <dc:creator>andrew_s</dc:creator>
      <dc:date>2016-11-29T20:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux - Reading Strings as Integer fields</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/317118#M9108</link>
      <description>Thank´s Andrew!!!&lt;BR /&gt;It´s never too late ...</description>
      <pubDate>Tue, 06 Dec 2016 19:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Reading-Strings-as-Integer-fields/m-p/317118#M9108</guid>
      <dc:creator>LuisLeiteBR</dc:creator>
      <dc:date>2016-12-06T19:41:48Z</dc:date>
    </item>
  </channel>
</rss>

