<?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: Reading an Excel Spreadsheet in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429182#M105991</link>
    <description>&lt;P&gt;Have you read the data into SAS? Then you should show use an example of what you have (only the bits that pertain) and what you would like the output to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll have to provide an example of what you want as "&amp;nbsp;look at these 3 site codes&amp;nbsp; individually and understand there is a space between them" doesn't have a common meaning.&lt;/P&gt;
&lt;P&gt;Generally&amp;nbsp;for a vast majority of cases to manipulated data it is best to have a single value in a single variable.&lt;/P&gt;
&lt;P&gt;For example I might do something like:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   site1=scan(site,1);
   site2=scan(site,2);
   site3=scan(site,3);
run;&lt;/PRE&gt;
&lt;P&gt;If the order actually means something I might suggest a more descriptive variable name and/or attaching label to the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specifics recommendations would require knowing what you are going to do with the data.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 16:50:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-01-19T16:50:26Z</dc:date>
    <item>
      <title>Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429174#M105986</link>
      <description>&lt;P&gt;I'm using SAS 9.4.&amp;nbsp;&amp;nbsp; I need to read a column in Excel called "site codes" that can look like this:&amp;nbsp;&amp;nbsp; 8X01 B902 WXT5.&amp;nbsp;&amp;nbsp; How do I tell SAS to look at these 3 site codes&amp;nbsp; individually and understand there is a space between them?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429174#M105986</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2018-01-19T16:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429182#M105991</link>
      <description>&lt;P&gt;Have you read the data into SAS? Then you should show use an example of what you have (only the bits that pertain) and what you would like the output to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll have to provide an example of what you want as "&amp;nbsp;look at these 3 site codes&amp;nbsp; individually and understand there is a space between them" doesn't have a common meaning.&lt;/P&gt;
&lt;P&gt;Generally&amp;nbsp;for a vast majority of cases to manipulated data it is best to have a single value in a single variable.&lt;/P&gt;
&lt;P&gt;For example I might do something like:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   site1=scan(site,1);
   site2=scan(site,2);
   site3=scan(site,3);
run;&lt;/PRE&gt;
&lt;P&gt;If the order actually means something I might suggest a more descriptive variable name and/or attaching label to the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specifics recommendations would require knowing what you are going to do with the data.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429182#M105991</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-19T16:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429220#M106000</link>
      <description>Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No, I haven't read it in. I don't know how to scan the Excel column and read each one of the site codes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 18:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429220#M106000</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2018-01-19T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429225#M106002</link>
      <description>&lt;P&gt;I would start with PROC IMPORT&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=p0jf3o1i67m044n1j0kz51ifhpvs.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=p0jf3o1i67m044n1j0kz51ifhpvs.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 18:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429225#M106002</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-19T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429285#M106022</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121964"&gt;@CEG&lt;/a&gt; wrote:&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No, I haven't read it in. I don't know how to scan the Excel column and read each one of the site codes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Read the data first. Then parse. Or else 1) export the Excel to something like CSV, 2) read the csv file and incorporate the parse code on the results with lots extra work to treat one field different than everything else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 21:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429285#M106022</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-19T21:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429296#M106023</link>
      <description>Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Working on it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2018 21:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429296#M106023</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2018-01-19T21:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading an Excel Spreadsheet in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429324#M106038</link>
      <description>&lt;P&gt;Depending on your environment you really should have either an import wizard, on the File menu in the SAS display manager, or a task in Enterprise guide to get a quick (though problematic because of the nature of Excel files) data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then into the joys of data step coding.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 23:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-an-Excel-Spreadsheet-in-SAS/m-p/429324#M106038</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-19T23:38:17Z</dc:date>
    </item>
  </channel>
</rss>

