<?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: Copypasting Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845793#M334373</link>
    <description>&lt;P&gt;Do the datalines in the photograph of the second data step have tab characters in them?&lt;/P&gt;
&lt;P&gt;If you want SAS to replace the TAB characters that might have mistakenly made their way into your program you can just add an INFILE statement before the INPUT statement so that you can add the EXPANDTABS option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input datalines expandtabs;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That was SAS will replace any tab characters in the data lines with the number of spaces needed to advance to the next tab stop.&amp;nbsp; Tab stops are every 8 characters.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 23:49:08 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-11-22T23:49:08Z</dc:date>
    <item>
      <title>Copypasting Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845038#M334075</link>
      <description>&lt;P&gt;I have been trying to copypaste data into SAS, but for whatever reason, it refuses to give me an actual set of results and just gives me empty cells in the output data tab. My professor does the same thing, but his data seems to work. I suspect that it's somehow due to the uneven nature of how my data appears in the program itself, but I'm not certain. Would anyone be willing to help clear this up?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 05:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845038#M334075</guid>
      <dc:creator>ldd15</dc:creator>
      <dc:date>2022-11-18T05:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Copypasting Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845040#M334076</link>
      <description>&lt;P&gt;Copy and paste WHAT to WHERE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that&amp;nbsp; if you highlight a few cells from Excel copy them and then paste them into the SAS program editor it might work to get the values there.&amp;nbsp; But depending on your setup it might paste TAB characters into the file.&amp;nbsp; (TAB characters in programs just cause a mess.) Or your SAS editor might automatically convert them into spaces, mine does.&amp;nbsp; So if the values in the cells don't have embedded spaces that works great.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  input (x1-x3) (:comma32.);
cards;
0.00%	5.00%	7.00%
92.79%	97.68%	99.78%
96.40%	98.84%	99.89%
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;PRE&gt;Obs      x1       x2       x3

 1      0.00     5.00     7.00
 2     92.79    97.68    99.78
 3     96.40    98.84    99.89

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show what you tried. Did you get error messages in the LOG?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 05:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845040#M334076</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-18T05:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copypasting Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845790#M334371</link>
      <description>&lt;P&gt;Dear Tom,&lt;/P&gt;&lt;P&gt;Forgive me for neglecting to properly describe what I was trying to do. I have since collated my problem in this word document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 23:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845790#M334371</guid>
      <dc:creator>ldd15</dc:creator>
      <dc:date>2022-11-22T23:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copypasting Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845791#M334372</link>
      <description>&lt;P&gt;What did the SAS log show when you ran that second data step? Did it complain about invalid values?&amp;nbsp; Did it read past the end of the lines?&amp;nbsp; How many lines where read? How many observations created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy the text from the SAS log and post it as TEXT, not attachments.&amp;nbsp; Use the Insert Code button so the forum doesn't try to reflow the lines into paragraphs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 23:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845791#M334372</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-22T23:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copypasting Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845793#M334373</link>
      <description>&lt;P&gt;Do the datalines in the photograph of the second data step have tab characters in them?&lt;/P&gt;
&lt;P&gt;If you want SAS to replace the TAB characters that might have mistakenly made their way into your program you can just add an INFILE statement before the INPUT statement so that you can add the EXPANDTABS option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input datalines expandtabs;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That was SAS will replace any tab characters in the data lines with the number of spaces needed to advance to the next tab stop.&amp;nbsp; Tab stops are every 8 characters.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 23:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copypasting-Excel/m-p/845793#M334373</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-22T23:49:08Z</dc:date>
    </item>
  </channel>
</rss>

