<?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 read in a text fie with special formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496627#M131387</link>
    <description>Is this the exact structure? You'll have multiple lines after that all follow the structure? Is the last line, the text line, does it have a maximum length limit?&lt;BR /&gt;&lt;BR /&gt;The reason I'm asking is because it's easy to write code that will read the lines above, but it may not generalize to your actual data so it's better to get the details ahead of time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a couple of different methods outlined here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=p0s16wvzu0z9q7n0zmxia30s6qyc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=p0s16wvzu0z9q7n0zmxia30s6qyc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Sep 2018 16:08:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-18T16:08:37Z</dc:date>
    <item>
      <title>how to read in a text fie with special formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496620#M131382</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to read in a text file with a layout as below into sas. The sas data should have columns as&amp;nbsp;"Product_productid","Review_userId","Review_ProfileName", "Review_helpfulness","Review_Score",&amp;nbsp;"Review Time", "Review Summary". Can someone let me know how I can handle such case? Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Data format&lt;/H3&gt;
&lt;DIV class="code"&gt;product/productId: B001E4KFG0&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/userId: A3SGXH7AUHU8GW&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/profileName: delmartian&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/helpfulness: 1/1&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/score: 5.0&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/time: 1303862400&lt;/DIV&gt;
&lt;DIV class="code"&gt;review/summary: Good Quality Dog Food review/text: I have bought several of the Vitality canned dog food products and have found them all to be of good quality. The product looks more like a stew than a processed meat and it smells better. My Labrador is finicky and she appreciates this product better than most.&lt;/DIV&gt;
&lt;DIV class="code"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;where&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;TT&gt;product/productId&lt;/TT&gt;: &lt;A href="http://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number" target="_blank"&gt;asin&lt;/A&gt;, e.g. &lt;A href="http://amazon.com/dp/B001E4KFG0/" target="_blank"&gt;amazon.com/dp/B001E4KFG0&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/userId&lt;/TT&gt;: id of the user, e.g. &lt;A href="http://www.amazon.com/gp/cdp/member-reviews/A3SGXH7AUHU8GW" target="_blank"&gt;A3SGXH7AUHU8GW&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/profileName&lt;/TT&gt;: name of the user&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/helpfulness&lt;/TT&gt;: fraction of users who found the review helpful&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/score&lt;/TT&gt;: rating of the product&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/time&lt;/TT&gt;: time of the review (unix time)&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/summary&lt;/TT&gt;: review summary&lt;/LI&gt;
&lt;LI&gt;&lt;TT&gt;review/text&lt;/TT&gt;: text of the review&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 15:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496620#M131382</guid>
      <dc:creator>flyingsohigh</dc:creator>
      <dc:date>2018-09-18T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to read in a text fie with special formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496627#M131387</link>
      <description>Is this the exact structure? You'll have multiple lines after that all follow the structure? Is the last line, the text line, does it have a maximum length limit?&lt;BR /&gt;&lt;BR /&gt;The reason I'm asking is because it's easy to write code that will read the lines above, but it may not generalize to your actual data so it's better to get the details ahead of time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a couple of different methods outlined here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=p0s16wvzu0z9q7n0zmxia30s6qyc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=p0s16wvzu0z9q7n0zmxia30s6qyc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2018 16:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496627#M131387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-18T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to read in a text fie with special formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496658#M131395</link>
      <description>&lt;P&gt;Thank you for replying to my post. However, I cannot open the link. There is not a limit set to the text so I might just set to the maximum sas allows.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 17:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496658#M131395</guid>
      <dc:creator>flyingsohigh</dc:creator>
      <dc:date>2018-09-18T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to read in a text fie with special formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496703#M131420</link>
      <description>&lt;P&gt;Ok, well your SAS installation should have the documentation installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's under SAS Products&amp;gt;Base SAS&amp;gt;Step-by-Step Programming with Base SAS 9.4 ... &amp;gt; Getting your data into Shape&amp;gt; Starting with Raw Data: Beyond the Basics&amp;gt; Reading Multiple Records to Create a Single Observation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why you can't access the SAS documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can search for that topic as well: "Reading Multiple Records to Create a Single Observation".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16607"&gt;@flyingsohigh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for replying to my post. However, I cannot open the link. There is not a limit set to the text so I might just set to the maximum sas allows.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 19:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-in-a-text-fie-with-special-formats/m-p/496703#M131420</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-18T19:11:55Z</dc:date>
    </item>
  </channel>
</rss>

