<?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: How to input data in a summary table format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-input-data-in-a-summary-table-format/m-p/435514#M108206</link>
    <description>&lt;P&gt;It looks to be column delimited so you could read it in as column formatted, something like the following to get you started.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A data step is the best approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '../cda.txt' firstobs=7;&lt;BR /&gt;input @1 region $ @20 White_lt35_M @27 White_lt35_F .... etc;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And if it's a single data set that you need to read, and only once, there's no issue with copying it to Excel, reformatting and then exporting it back as a CSV and importing that. You run the risk of adding errors but it's easy to check with a small data set.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 02:50:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-09T02:50:49Z</dc:date>
    <item>
      <title>How to input data in a summary table format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-input-data-in-a-summary-table-format/m-p/435511#M108205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am given a&amp;nbsp;data set on&amp;nbsp;how satisfaction depends on race, gender, age and regional location. However, the format of the txt. file is like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18416i5289D2323C33BD23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like a formatted summary table. I am wondering how can I input these data into SAS? I would like to have five variables: satisfaction, gender, race, region and age.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sherry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 01:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-input-data-in-a-summary-table-format/m-p/435511#M108205</guid>
      <dc:creator>Sherryfu0315</dc:creator>
      <dc:date>2018-02-09T01:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to input data in a summary table format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-input-data-in-a-summary-table-format/m-p/435514#M108206</link>
      <description>&lt;P&gt;It looks to be column delimited so you could read it in as column formatted, something like the following to get you started.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A data step is the best approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '../cda.txt' firstobs=7;&lt;BR /&gt;input @1 region $ @20 White_lt35_M @27 White_lt35_F .... etc;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And if it's a single data set that you need to read, and only once, there's no issue with copying it to Excel, reformatting and then exporting it back as a CSV and importing that. You run the risk of adding errors but it's easy to check with a small data set.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 02:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-input-data-in-a-summary-table-format/m-p/435514#M108206</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-09T02:50:49Z</dc:date>
    </item>
  </channel>
</rss>

