<?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 a .bcp files? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109552#M22743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ksharp and DanielSantos! Very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2012 10:14:15 GMT</pubDate>
    <dc:creator>smilingmelbourne</dc:creator>
    <dc:date>2012-09-02T10:14:15Z</dc:date>
    <item>
      <title>How to import a .bcp files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109549#M22740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received from a data vendor a bunch of data files with .bcp file extensions and a little application 'gzip'. They told me to unzip the files and rename them as .txt files before importing into SAS in the usual way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After unzipping these .bcp files, however, I found out that they remain .bcp files. So I came up with a solution myself by opening those unzipped files with Notepad++ and Save Aa them as .txt files. For these files, I was able to import them all into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, many of the unzipped files are too large to be clicked open in Notepad++, so I could not import them into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please show me how to fix this issue? Each of the files are in several GBs and cannot be openned in Notepad++ or anything to save them as .txt files. I don't know how to read them into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 02:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109549#M22740</guid>
      <dc:creator>smilingmelbourne</dc:creator>
      <dc:date>2012-08-31T02:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .bcp files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109550#M22741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to import them by using INFILE statement directly? without Save as TXT file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 03:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109550#M22741</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-31T03:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .bcp files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109551#M22742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although having a wrong extension, from what you're saying those files are compressed (zip).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once decompressed you're good to go, no need to open them through anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems you're just using Notepad++ to rename the extension. Unless Notepad++ is translating something in the process, say line feed/carriage return codes. Either way, I see no need to pass them through Notepad++, SAS will import them fine directly (after decompressed), as Ksharp suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you care to bypass the unzip process outside SAS, you may try to pipe the unzip command from infile, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;infile 'unzip -p C:\INPUT\MYFILE.bcp' pipe; * -p option pipes the content;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: -p option of my unzip command line utility pipes the content of the zip, for winzip it's the -c option, you'll have to check the utility your using, and get the correct option flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way, would be to use SASZIPAM engine, which is a "use at your own risk" feature: &lt;A href="http://support.sas.com/kb/31/244.html" title="http://support.sas.com/kb/31/244.html"&gt;http://support.sas.com/kb/31/244.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I wouldn't recommend it for big files like yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers from Portugal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 07:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109551#M22742</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2012-08-31T07:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .bcp files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109552#M22743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ksharp and DanielSantos! Very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 10:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-bcp-files/m-p/109552#M22743</guid>
      <dc:creator>smilingmelbourne</dc:creator>
      <dc:date>2012-09-02T10:14:15Z</dc:date>
    </item>
  </channel>
</rss>

