<?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 string with double dash from Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15874#M2132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a copy of a worksheet, and your import code, that exhibits that behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2012 19:16:19 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-02-27T19:16:19Z</dc:date>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15873#M2131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to use proc import to import charactor variables (length $80. ) including double dash (–) from Excel 97-2003 worksheet. I use SAS 9.2 version. The double dash becomes to !! after imported to SAS. Could you please help? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15873#M2131</guid>
      <dc:creator>yyangca</dc:creator>
      <dc:date>2012-02-27T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15874#M2132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a copy of a worksheet, and your import code, that exhibits that behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15874#M2132</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-27T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15875#M2133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My excel has the below data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 64px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="width: 48pt; height: 12.75pt;" width="64"&gt;Desc&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;This is a sample test -- data step test for sas forums&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;BR /&gt;PROC IMPORT OUT= TEST&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\Documents and Settings\TEST.xls" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; Desc&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a sample test -- data step test for sas forums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;33&amp;nbsp;&amp;nbsp; PROC IMPORT OUT= TEST&lt;BR /&gt;34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\Documents and Settings\TEST.xls"&lt;BR /&gt;35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;BR /&gt;36&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;NOTE: WORK.TEST data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.56 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.60 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;37&lt;BR /&gt;38&amp;nbsp;&amp;nbsp; PROC PRINT; RUN;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.TEST.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15875#M2133</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-27T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15876#M2134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what is the problem? Your output matches your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15876#M2134</guid>
      <dc:creator>DMartin</dc:creator>
      <dc:date>2012-02-27T19:42:21Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15877#M2135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Question was posed by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://communities.sas.com/people/yyangca" id="jive-796930859104334509803" onmouseout="" onmouseover=""&gt;yyangca&lt;/A&gt; . I replied him with an answer. That's not me who posed the question &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15877#M2135</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-27T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15878#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That wasn't the OP who posted the above test.&amp;nbsp; While the OP hasn't posted an example that shows the problem, my initial guess is that the "double dash" is actually an emdash character, and that the result of the import isn't !! but, rather, a box appearing character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15878#M2136</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-27T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15879#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops!! Sorry about that. Must remember to engage brain before putting fingers in gear. :smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 19:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15879#M2137</guid>
      <dc:creator>DMartin</dc:creator>
      <dc:date>2012-02-27T19:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15880#M2138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To test whether it is an emdash, can you change it to a dash with the following command in a datastep?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable=translate(variable,"-","14"x,);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 20:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15880#M2138</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-27T20:02:49Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15881#M2139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; My SAS codes:&lt;/P&gt;&lt;P&gt;proc import datafile="Z:\project1\myfile.xls" out=hosp DBMS=xls replace:&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samle data in Excel is like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 376px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="185"&gt;Hosp1&lt;/TD&gt;&lt;TD width="191"&gt;Hosp2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="185"&gt;hospital name – sample 1&lt;/TD&gt;&lt;TD class="xl68" width="191"&gt;hospital name – sample 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;The data after read in SAS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hospital name !! sample 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hospital name !! sample 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 20:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15881#M2139</guid>
      <dc:creator>yyangca</dc:creator>
      <dc:date>2012-02-27T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15882#M2140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I re-ran the code with your data. &lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= TEST&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\Documents and Settings\TEST.xls" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;TABLE cellpadding="0" cellspacing="0" class="Table"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: right;"&gt;Obs&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: left;"&gt;Hosp1&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: left;"&gt;Hosp2&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="b RowHeader" nowrap="nowrap" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: left;"&gt;hospital name -- sample 1&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: left;"&gt;hospital name -- sample 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Can you re-run by replacing xls to EXCEL in your code?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 21:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15882#M2140</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-27T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15883#M2141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Awesome. It works!! Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 21:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15883#M2141</guid>
      <dc:creator>yyangca</dc:creator>
      <dc:date>2012-02-27T21:16:57Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15884#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yyangca: what worked?&amp;nbsp; And, if the problem is solved, you should mark the answer as being correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 21:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15884#M2142</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-27T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Import string with double dash from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15885#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Replace DBMS=xls with DBMS=EXCEL in my original proc import. That way data are read in with "–" displayed correctly. I just marked the anwser from HIMA as correct answer. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 21:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-string-with-double-dash-from-Excel/m-p/15885#M2143</guid>
      <dc:creator>yyangca</dc:creator>
      <dc:date>2012-02-27T21:57:26Z</dc:date>
    </item>
  </channel>
</rss>

