<?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 Import of Excel files that contains CRLF into the cells in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-of-Excel-files-that-contains-CRLF-into-the-cells/m-p/168684#M12946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Excel file that contains CRLFs into the cells.&lt;/P&gt;&lt;P&gt;In EG 4.1, when this file is imported, in the resulted dataset CRLFs are replaced with blanks.&lt;/P&gt;&lt;P&gt;However, in EG 5.1, when same file is imported, in the resulted dataset CRLFs are replaced with dots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;In Excel cell there is the following string:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(ISP_GROUP1_SDESC IN ("A_Internet","A_Internet_FO","B_VPN","C_Frame Relay", , "B_VPN_Layer2")&amp;nbsp; AND PRICE_PLAN_TYPE_LDESC NOT IN ("Fixed Internet over Fixed Voice"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;PRICE_PLAN_TYPE_LDESC IN ("Fixed Internet over Fixed Voice")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;AND HFM_SEGMENT_SDESC = "TFSG110" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;AND MASURA IN ("TD_ISP","CB_ISP","TA_ISP","OHP_CB_ISP_M1"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(COD_ACCOUNT="E8049000" and COD_2="TFSG110"&amp;nbsp; and COD_1="MVCB_ISP")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the cell is imported in EG 5.1, the string becomes (partial output):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(((.(ISP_GROUP1_SDESC IN ("A_Internet","A_Internet_FO","B_VPN","C_Frame Relay", , "B_VPN_Layer2")&amp;nbsp; AND PRICE_PLAN_TYPE_LD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Notice the dot after the first three open parenthesis that replaces the CRLF in the original string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;As the intention is to use the initial Excel file to build a SQL phrase, the dot which appears leads to syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Is there any way to circumvent the problem (other that eliminating CRLFs from original file)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Stefan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 08:31:49 GMT</pubDate>
    <dc:creator>StefanG</dc:creator>
    <dc:date>2014-04-04T08:31:49Z</dc:date>
    <item>
      <title>Import of Excel files that contains CRLF into the cells</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-of-Excel-files-that-contains-CRLF-into-the-cells/m-p/168684#M12946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Excel file that contains CRLFs into the cells.&lt;/P&gt;&lt;P&gt;In EG 4.1, when this file is imported, in the resulted dataset CRLFs are replaced with blanks.&lt;/P&gt;&lt;P&gt;However, in EG 5.1, when same file is imported, in the resulted dataset CRLFs are replaced with dots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;In Excel cell there is the following string:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(ISP_GROUP1_SDESC IN ("A_Internet","A_Internet_FO","B_VPN","C_Frame Relay", , "B_VPN_Layer2")&amp;nbsp; AND PRICE_PLAN_TYPE_LDESC NOT IN ("Fixed Internet over Fixed Voice"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;PRICE_PLAN_TYPE_LDESC IN ("Fixed Internet over Fixed Voice")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;AND HFM_SEGMENT_SDESC = "TFSG110" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;AND MASURA IN ("TD_ISP","CB_ISP","TA_ISP","OHP_CB_ISP_M1"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(COD_ACCOUNT="E8049000" and COD_2="TFSG110"&amp;nbsp; and COD_1="MVCB_ISP")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the cell is imported in EG 5.1, the string becomes (partial output):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,times; font-size: 8pt;"&gt;(((.(ISP_GROUP1_SDESC IN ("A_Internet","A_Internet_FO","B_VPN","C_Frame Relay", , "B_VPN_Layer2")&amp;nbsp; AND PRICE_PLAN_TYPE_LD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Notice the dot after the first three open parenthesis that replaces the CRLF in the original string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;As the intention is to use the initial Excel file to build a SQL phrase, the dot which appears leads to syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Is there any way to circumvent the problem (other that eliminating CRLFs from original file)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Stefan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 08:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-of-Excel-files-that-contains-CRLF-into-the-cells/m-p/168684#M12946</guid>
      <dc:creator>StefanG</dc:creator>
      <dc:date>2014-04-04T08:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import of Excel files that contains CRLF into the cells</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-of-Excel-files-that-contains-CRLF-into-the-cells/m-p/168685#M12947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I can't think of a workaround other than as you say, remove CLRF from the original file.&amp;nbsp; Maybe have a small VBA macro to do it on save? &lt;/P&gt;&lt;P&gt;I wouldn't recommend Excel for what you are trying to achieve either.&amp;nbsp; What you appear to be doing is using Excel to store some sort of metadata or part code and then read that in and create code from it.&amp;nbsp; Excel's strength and weakness is its flexibility.&amp;nbsp; If you are set on going forward with that kind of process I would suggest you need a lot more functionality to get it working.&amp;nbsp; Code checking, validation etc. which you could build into the Excel file in VBA.&amp;nbsp; Its one of the problems I am facing at the moment as we have base SAS and want to store partial code/metadata in SAS datasets, however the fsedit window is useless for data entry.&amp;nbsp; I believe that SAS do software for things like this, though there is a cost involved.&amp;nbsp; Alternatively you could develop a database yourself.&amp;nbsp; I saw at phuse a chap using RDF/OWL to store metadata for instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 08:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-of-Excel-files-that-contains-CRLF-into-the-cells/m-p/168685#M12947</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-04T08:46:19Z</dc:date>
    </item>
  </channel>
</rss>

