<?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: problem with copy and past from excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386604#M92624</link>
    <description>&lt;P&gt;Perhaps there is some translation difficulty, but this code works perfectly well on my computer. What exactly is the problem you are experiencing?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 13:11:28 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2017-08-09T13:11:28Z</dc:date>
    <item>
      <title>problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386602#M92623</link>
      <description>&lt;P&gt;I am creating a&amp;nbsp;&amp;nbsp;data file and when I copy and paste data from excel I have problems , it puts a tab instead of empty spaces&lt;/P&gt;
&lt;PRE&gt;data uno;
input a b c;
datalines;
4	6	8
1	6	8
4	5	7
;
run; &lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;I usually import but sometimes i need this kind of program&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386602#M92623</guid>
      <dc:creator>adricano</dc:creator>
      <dc:date>2017-08-09T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386604#M92624</link>
      <description>&lt;P&gt;Perhaps there is some translation difficulty, but this code works perfectly well on my computer. What exactly is the problem you are experiencing?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386604#M92624</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-09T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386605#M92625</link>
      <description>&lt;P&gt;Yes, its another "feature" of Excel, when data is copied out it likes to split each cell, and tab is less likely to be in the data so it uses that. &amp;nbsp;One thing you can do if you have to use Excel and copy and paste, is to&amp;nbsp;merge cells using Excel:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ablebits.com/office-addins-blog/2015/07/15/excel-concatenate-strings-cells-columns/" target="_blank"&gt;https://www.ablebits.com/office-addins-blog/2015/07/15/excel-concatenate-strings-cells-columns/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then use the one merged cell to copy over. &amp;nbsp;However that really is just faffing about, either drop Excel totally, or just save to a CSV and read it in properly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386605#M92625</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-09T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386607#M92627</link>
      <description>It seems to be a problem with the data separation a tab instead of blank spaces&lt;BR /&gt;This is the log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data uno;&lt;BR /&gt;63         input a b c;&lt;BR /&gt;64         datalines;&lt;BR /&gt; NOTE: Invalid data for a in line 65 1-5.&lt;BR /&gt;NOTE: Invalid data for b in line 66 1-5.&lt;BR /&gt;NOTE: Invalid data for c in line 67 1-5.&lt;BR /&gt;REGLA:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;BR /&gt;&lt;BR /&gt; 67  CHAR   4.5.7&lt;BR /&gt;     ZONE   30303222222222222222222222222222222222222222222222222222222222222222222222222222&lt;BR /&gt;     NUMR   49597000000000000000000000000000000000000000000000000000000000000000000000000000&lt;BR /&gt;NOTE: Invalid data errors for file CARDS occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;a=. b=. c=. _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.UNO has 1 observations and 3 variables.&lt;BR /&gt;NOTE: Sentencia DATA used (Total process time):&lt;BR /&gt;       real time           0.00 seconds&lt;BR /&gt;       cpu time            0.00 seconds&lt;BR /&gt;&lt;BR /&gt; 68         ;&lt;BR /&gt; 69         run;&lt;BR /&gt;70&lt;BR /&gt; 71         OPTIONS NOSYNTAXCHECK;&lt;BR /&gt;72         ODS HTML CLOSE;&lt;BR /&gt;73         &amp;amp;GRAPHTERM; ;*';*";*/;RUN;QUIT;&lt;BR /&gt;74         QUIT;RUN;&lt;BR /&gt;75         ODS HTML5 (ID=WEB) CLOSE;&lt;BR /&gt;76&lt;BR /&gt; 77         ODS RTF (ID=WEB) CLOSE;&lt;BR /&gt;78         ODS PDF (ID=WEB) CLOSE;&lt;BR /&gt;NOTE: ODS PDF(WEB) printed no output.&lt;BR /&gt;       (This sometimes results from failing to place a RUN statement before the ODS PDF(WEB) CLOSE statement.)&lt;BR /&gt;79         FILENAME _GSFNAME;&lt;BR /&gt;NOTE: Fileref _GSFNAME has been deassigned.&lt;BR /&gt;80         DATA _NULL_;&lt;BR /&gt;81         RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386607#M92627</guid>
      <dc:creator>adricano</dc:creator>
      <dc:date>2017-08-09T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386608#M92628</link>
      <description>&lt;P&gt;You need to tell SAS that it has to use a different delimiter:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data uno;
infile datalines dlm='09'x;
input a b c;
datalines;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If there's a possibilty of empty cells (two tabs in succession), also add the dsd option.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386608#M92628</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-09T13:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with copy and past from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386612#M92631</link>
      <description>Good!!! thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-copy-and-past-from-excel/m-p/386612#M92631</guid>
      <dc:creator>adricano</dc:creator>
      <dc:date>2017-08-09T13:30:13Z</dc:date>
    </item>
  </channel>
</rss>

