<?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: Could the length be formated when using proc import? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Could-the-length-be-formated-when-using-proc-import/m-p/409187#M99958</link>
    <description>No. If you use PROC IMPORT you cannot specify column lengths/types, you need to use a data step to have full control. 
You can set GUESSINGROWS=MAX to see if PROC IMPORT works, but a data step is better in the long run. And it's faster.</description>
    <pubDate>Tue, 31 Oct 2017 15:51:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-31T15:51:21Z</dc:date>
    <item>
      <title>Could the length be formated when using proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Could-the-length-be-formated-when-using-proc-import/m-p/409185#M99957</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a proc import code below.&amp;nbsp;&amp;nbsp; I found some columns were truncated after the import procedure.&amp;nbsp;&amp;nbsp; Could I format some specific column length&amp;nbsp;to avoid this situation?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Poverty&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;state.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;year &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;importfolder.\&amp;amp;state.\&amp;amp;year.\Poverty&amp;amp;year..csv"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=CSV REPLACE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;GETNAMES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATAROW&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Could-the-length-be-formated-when-using-proc-import/m-p/409185#M99957</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-10-31T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Could the length be formated when using proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Could-the-length-be-formated-when-using-proc-import/m-p/409187#M99958</link>
      <description>No. If you use PROC IMPORT you cannot specify column lengths/types, you need to use a data step to have full control. 
You can set GUESSINGROWS=MAX to see if PROC IMPORT works, but a data step is better in the long run. And it's faster.</description>
      <pubDate>Tue, 31 Oct 2017 15:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Could-the-length-be-formated-when-using-proc-import/m-p/409187#M99958</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-31T15:51:21Z</dc:date>
    </item>
  </channel>
</rss>

