<?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 How to load a text file in SAS Data Integration with comma separator in amounts fields instead in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-load-a-text-file-in-SAS-Data-Integration-with-comma/m-p/646632#M9143</link>
    <description>&lt;P&gt;Good morning, I needed help solving a problem with the SAS Data Integration Studio 4.903 tool. It is related to the import of delimited text files, for this I use the File Reader object that is within transformations / access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sequence load file into oracle table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_4-1589194444654.png" style="width: 555px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39273iF4CEFBCC613BEA50/image-dimensions/555x61?v=v2" width="555" height="61" role="button" title="ivanfesua_4-1589194444654.png" alt="ivanfesua_4-1589194444654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem is the following, the amounts fields come with a comma separator in the decimals when importing with the File Reader, I define them all as Alphanumeric and then with a table loader, I load them in a table of the Oracle Database , it is here in the table loader where I modify the format of the amounts fields to 19.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_1-1589193949204.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39270iD4C552148ECD48E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ivanfesua_1-1589193949204.png" alt="ivanfesua_1-1589193949204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition fields in the file reader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_2-1589194048212.png" style="width: 487px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39271i5994CD5786D02E43/image-dimensions/487x43?v=v2" width="487" height="43" role="button" title="ivanfesua_2-1589194048212.png" alt="ivanfesua_2-1589194048212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition fields in table loader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_3-1589194169351.png" style="width: 509px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39272i54ED82268FB60B8A/image-dimensions/509x28?v=v2" width="509" height="28" role="button" title="ivanfesua_3-1589194169351.png" alt="ivanfesua_3-1589194169351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the load is carried out, I check the data in the table and it turns out that the records with amounts with decimals come to null, because the Database has the point as a decimal separator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The temporary solution applied was to modify the file directly by replacing the decimal point with decimal point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modified file - decimal separator instead of comma&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_1-1589194904218.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39276i904C31E926892E1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ivanfesua_1-1589194904218.png" alt="ivanfesua_1-1589194904218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to configure or define a parameter to tell it to take the point as a decimal separator.&lt;/P&gt;&lt;P&gt;I have seen as an option in the File Reader that you can add code in INFILE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;advanced file properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_5-1589194611833.png" style="width: 456px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39274i43821DEC1A3E0222/image-dimensions/456x301?v=v2" width="456" height="301" role="button" title="ivanfesua_5-1589194611833.png" alt="ivanfesua_5-1589194611833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much and I hope you can help me.&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 11:04:59 GMT</pubDate>
    <dc:creator>ivanfesua</dc:creator>
    <dc:date>2020-05-11T11:04:59Z</dc:date>
    <item>
      <title>How to load a text file in SAS Data Integration with comma separator in amounts fields instead</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-load-a-text-file-in-SAS-Data-Integration-with-comma/m-p/646632#M9143</link>
      <description>&lt;P&gt;Good morning, I needed help solving a problem with the SAS Data Integration Studio 4.903 tool. It is related to the import of delimited text files, for this I use the File Reader object that is within transformations / access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sequence load file into oracle table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_4-1589194444654.png" style="width: 555px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39273iF4CEFBCC613BEA50/image-dimensions/555x61?v=v2" width="555" height="61" role="button" title="ivanfesua_4-1589194444654.png" alt="ivanfesua_4-1589194444654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem is the following, the amounts fields come with a comma separator in the decimals when importing with the File Reader, I define them all as Alphanumeric and then with a table loader, I load them in a table of the Oracle Database , it is here in the table loader where I modify the format of the amounts fields to 19.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_1-1589193949204.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39270iD4C552148ECD48E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ivanfesua_1-1589193949204.png" alt="ivanfesua_1-1589193949204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition fields in the file reader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_2-1589194048212.png" style="width: 487px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39271i5994CD5786D02E43/image-dimensions/487x43?v=v2" width="487" height="43" role="button" title="ivanfesua_2-1589194048212.png" alt="ivanfesua_2-1589194048212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition fields in table loader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_3-1589194169351.png" style="width: 509px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39272i54ED82268FB60B8A/image-dimensions/509x28?v=v2" width="509" height="28" role="button" title="ivanfesua_3-1589194169351.png" alt="ivanfesua_3-1589194169351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the load is carried out, I check the data in the table and it turns out that the records with amounts with decimals come to null, because the Database has the point as a decimal separator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The temporary solution applied was to modify the file directly by replacing the decimal point with decimal point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modified file - decimal separator instead of comma&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_1-1589194904218.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39276i904C31E926892E1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ivanfesua_1-1589194904218.png" alt="ivanfesua_1-1589194904218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to configure or define a parameter to tell it to take the point as a decimal separator.&lt;/P&gt;&lt;P&gt;I have seen as an option in the File Reader that you can add code in INFILE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;advanced file properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivanfesua_5-1589194611833.png" style="width: 456px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39274i43821DEC1A3E0222/image-dimensions/456x301?v=v2" width="456" height="301" role="button" title="ivanfesua_5-1589194611833.png" alt="ivanfesua_5-1589194611833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much and I hope you can help me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 11:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-load-a-text-file-in-SAS-Data-Integration-with-comma/m-p/646632#M9143</guid>
      <dc:creator>ivanfesua</dc:creator>
      <dc:date>2020-05-11T11:04:59Z</dc:date>
    </item>
  </channel>
</rss>

