<?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 import the following with datalines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177138#M264767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you show us a saslog we might be able to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jul 2014 16:03:55 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-07-12T16:03:55Z</dc:date>
    <item>
      <title>how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177134#M264763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;12/09/2010;Houston; TX; 77077&lt;/P&gt;&lt;P&gt;10/16/2009;Houston; TX; 77040&lt;/P&gt;&lt;P&gt;9/18/2009;Katy; TX; 77450&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;data pd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;infile cards;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;informat date mmddyy10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;input date mmddyy10. address $12. area&amp;nbsp; $2. Pin ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;format date mmddyy10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;cards4;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;12/09/2010;Houston; TX; 77077&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;10/16/2009;Houston; TX; 77040&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;9/18/2009;Katy; TX; 77450&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;;;;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 06:30:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177134#M264763</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-12T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177135#M264764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true" style="display: inline !important;"&gt;
&lt;P style="display: inline !important;"&gt;Try the following:&lt;/P&gt;
&lt;P style="display: inline !important;"&gt;&lt;/P&gt;
&lt;P style="display: inline !important;"&gt;&lt;/P&gt;
&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;data pd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;infile cards dlm= ';' dsd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;informat date mmddyy10.;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;input date&amp;nbsp; address :$12. area :&amp;nbsp; $2. Pin ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;format date mmddyy10.;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;cards4;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;12/09/2010;Houston; TX; 77077&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;10/16/2009;Houston; TX; 77040&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;9/18/2009;Katy; TX; 77450&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 16.0pt;"&gt;;;;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt; &lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 07:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177135#M264764</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-12T07:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177136#M264765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi peter,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;But,I am not getting result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 08:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177136#M264765</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-12T08:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177137#M264766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add&amp;nbsp;&amp;nbsp; RUN;&amp;nbsp;&amp;nbsp; at the end of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 12:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177137#M264766</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-12T12:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177138#M264767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you show us a saslog we might be able to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 16:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177138#M264767</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-07-12T16:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177139#M264768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to add colon modifiers in front of the formats in your INPUT statement to prevent SAS from trying to read the delimiters between the fields as part of the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I usually just use a list mode input INPUT statement when reading data in a list mode (lists delimited with semi-colons, tabs or commas are just like lists delimited with spaces).&amp;nbsp; Set the definitions of your variables with a LENGTH or ATTRIB statement instead of assuming SAS will figure it out from the format that you used on the INPUT statement.&amp;nbsp; If any fields require a special informat to be read properly then attach it to them with an INFORMAT or ATTRIB statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cards &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dlm&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;';'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dsd&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; date &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; address $&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; area $&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Pin &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;informat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; date &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; date &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; date address area Pin ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards4&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;12/09/2010;Houston; TX; 77077&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;10/16/2009;Houston; TX; 77040&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;9/18/2009;Katy; TX; 77450&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 23:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177139#M264768</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-12T23:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177140#M264769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for talking time for resolving.&lt;/P&gt;&lt;P&gt;Thanks Tom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 03:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177140#M264769</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-13T03:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to import the following with datalines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177141#M264770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 03:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-import-the-following-with-datalines/m-p/177141#M264770</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-07-13T03:17:31Z</dc:date>
    </item>
  </channel>
</rss>

