<?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 Need help inputting data with datalines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109788#M22789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&amp;nbsp; I am trying to load some addresses into one column of a dataset by using a datalines statement.&amp;nbsp; When I run the below, only about half of the addresses are being loaded.&amp;nbsp; I have tried cards, and messing with the format to no avail.&amp;nbsp; I think it must be something simple, but I can't get it.&amp;nbsp; One other thing, now I cannot even paste into this post, so the code is attached.&amp;nbsp; I apologize for the inconvenience.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 14:37:53 GMT</pubDate>
    <dc:creator>gsnidow</dc:creator>
    <dc:date>2012-10-29T14:37:53Z</dc:date>
    <item>
      <title>Need help inputting data with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109788#M22789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&amp;nbsp; I am trying to load some addresses into one column of a dataset by using a datalines statement.&amp;nbsp; When I run the below, only about half of the addresses are being loaded.&amp;nbsp; I have tried cards, and messing with the format to no avail.&amp;nbsp; I think it must be something simple, but I can't get it.&amp;nbsp; One other thing, now I cannot even paste into this post, so the code is attached.&amp;nbsp; I apologize for the inconvenience.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109788#M22789</guid>
      <dc:creator>gsnidow</dc:creator>
      <dc:date>2012-10-29T14:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help inputting data with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109789#M22790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an ampersand.&amp;nbsp; i.e.,&lt;/P&gt;&lt;P&gt;input Address &amp;amp; $100.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109789#M22790</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-29T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help inputting data with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109790#M22791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Arthur, that worked like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109790#M22791</guid>
      <dc:creator>gsnidow</dc:creator>
      <dc:date>2012-10-29T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help inputting data with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109791#M22792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &amp;amp; will allow SAS to read variable length data, but it will truncate when it sees two adjacent spaces.&lt;/P&gt;&lt;P&gt;You can add an INFILE statement so that you can use the TRUNCOVER option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Addresses;&lt;/P&gt;&lt;P&gt; infile datalines truncover;&lt;/P&gt;&lt;P&gt; input Address $100.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use the _INFILE_ automatic variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Addresses;&lt;/P&gt;&lt;P&gt; length address $100;&lt;/P&gt;&lt;P&gt; input;&lt;/P&gt;&lt;P&gt; address=_infile_;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 15:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-inputting-data-with-datalines/m-p/109791#M22792</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-29T15:19:13Z</dc:date>
    </item>
  </channel>
</rss>

