<?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 part of raw data in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398991#M3523</link>
    <description>Remove both 2's. You do not want to read from column 2.&lt;BR /&gt;Wins 2&lt;BR /&gt;Losses 2;</description>
    <pubDate>Wed, 27 Sep 2017 00:32:30 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-09-27T00:32:30Z</dc:date>
    <item>
      <title>Reading part of raw data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398987#M3521</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The raw data displayed below contains values for the following variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;League (Character)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Team (Character)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Wins (Numeric)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Losses (Numeric)&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Write a DATA step that reads in the value for League, tests it, keeps only observations with a value of ‘American’, and produces an output data set containing all 4 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my code so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data&amp;nbsp;WORK.Illus;&lt;BR /&gt;infiles&amp;nbsp;datalines&amp;nbsp;delimiter&amp;nbsp;= ' ';&lt;BR /&gt;input&amp;nbsp;League $8. @;&lt;BR /&gt;if League = 'American';&lt;BR /&gt;input&amp;nbsp;Team $18.&lt;BR /&gt;Wins 2&lt;BR /&gt;Losses 2;&lt;BR /&gt;datalines;&lt;BR /&gt;National New York Mets 19 12&lt;BR /&gt;American Toronto Blue Jays 19 13&lt;BR /&gt;American Boston Red Sox 17 12&lt;BR /&gt;National St Louis Cardinals 13 11&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all&amp;nbsp;I get in my table. What can I do to actually get the data I need in the table?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-09-26 at 18.02.48.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15439i993AE07F1F09B206/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-09-26 at 18.02.48.png" alt="Screen Shot 2017-09-26 at 18.02.48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 00:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398987#M3521</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-27T00:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading part of raw data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398991#M3523</link>
      <description>Remove both 2's. You do not want to read from column 2.&lt;BR /&gt;Wins 2&lt;BR /&gt;Losses 2;</description>
      <pubDate>Wed, 27 Sep 2017 00:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398991#M3523</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-09-27T00:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading part of raw data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398996#M3524</link>
      <description>&lt;P&gt;Post code and especially the data using the Insert Code or Insert SAS code buttons in the editor.&lt;/P&gt;
&lt;P&gt;Otherwise important information, like which columns the data is in, whether there is anything to make the end of the team name, etc. will be lost because the forum will format your post into paragraphs.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 01:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Reading-part-of-raw-data/m-p/398996#M3524</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-27T01:25:40Z</dc:date>
    </item>
  </channel>
</rss>

