<?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: Import txt to sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161532#M31397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 16:14:30 GMT</pubDate>
    <dc:creator>LanMin</dc:creator>
    <dc:date>2013-12-03T16:14:30Z</dc:date>
    <item>
      <title>Import txt to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161528#M31393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;attached is a sample of my data (my real data has over 100,000 row). when I use sas -&amp;gt;file -&amp;gt;import data wizard, after importing successfully, variable cusip lose the leading zeros,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g., the first observation has a cusip =00036020, after import, it cusip =36020,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how could I fix this? (note: I have many observations, so I can't do it manually).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 19:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161528#M31393</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-12-02T19:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Import txt to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161529#M31394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two basic choices, one is to leave cuspid as numeric and assign and appropriate format such as Z8.0 to display with leading zeroes. Or import the data as a string. When proc import runs it generates data step code that appears in the log that can be modified. Either use F4 to recall the code to the program editor or copy from the log. The INFORMAT and FORMAT for your cuspid are likely defaulting to a best32. format. Change those lines to be informat cuspid $8. , remove the $ that will appear after the variable in the INPUT statement, save and run the modified code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161529#M31394</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-02T20:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import txt to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161530#M31395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another possibility would be to take the already-imported variable and convert the data after the fact:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; cuspid_char = put(cuspid, z8.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; drop cuspid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; rename cuspid_char = cuspid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161530#M31395</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-12-02T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import txt to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161531#M31396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 16:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161531#M31396</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-12-03T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import txt to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161532#M31397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 16:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-txt-to-sas/m-p/161532#M31397</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-12-03T16:14:30Z</dc:date>
    </item>
  </channel>
</rss>

