<?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 CSV Directly from Password Protected Zip FIle in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326643#M271551</link>
    <description>&lt;P&gt;This isn't really a SAS related question. &amp;nbsp;You recieve a third party file, and then you should follow the process set out in your import process document, aligning with the data transfer document you will have created. &amp;nbsp;Thus as part of that process, you will store the file somewhere (pull from somewhere, have them post etc. then save to a know location). &amp;nbsp;Then you would unpack the file, perform routine checks on it, then validate it against your data import agreement. &amp;nbsp;Then finally move it to production for further processing - hence the further processing shouldn't care about ZIP files or anything like that. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 09:29:44 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-23T09:29:44Z</dc:date>
    <item>
      <title>Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326627#M271547</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am using code mentioned below to importing a csv file directly from a zip file and the code is working fine, but when i apply the same code on password protected zip file it doesnt work. Is there anyway i can get this to work by mentioning password some where in the code. Any other method would also be appreciated&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FILENAME ZIPFILE zip 'K:\check1.zip' ;&lt;BR /&gt;DATA newdata ;&lt;BR /&gt;INFILE ZIPFILE(new.csv)&lt;BR /&gt;DLM = ','&lt;BR /&gt;MISSOVER&lt;BR /&gt;DSD&lt;BR /&gt;LRECL =&amp;nbsp;32767&lt;BR /&gt;FIRSTOBS = 1;&lt;/P&gt;&lt;P&gt;informat var1 $ 30. ;&lt;/P&gt;&lt;P&gt;informat var2 $ 30. ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;input&amp;nbsp;var1 $&lt;BR /&gt;var2 $&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326627#M271547</guid>
      <dc:creator>saslearner3</dc:creator>
      <dc:date>2017-01-23T08:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326630#M271548</link>
      <description>&lt;P&gt;There is similar discussion happend on this topic, here is a thread of the same. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Import-Password-Protected-Text-Files/td-p/101692" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Import-Password-Protected-Text-Files/td-p/101692&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326630#M271548</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-01-23T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326633#M271549</link>
      <description>&lt;P&gt;Hi Jagdishkatam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. Actually i have seen the discussion you posted before posting my question but couldn't get a working solution. There was one solution provided for password protected file but that was for UNIX and i am working on windows OS. Other methods which were mentioned requires additional software installation which i am not allowed to do. Hope this clarifies my query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326633#M271549</guid>
      <dc:creator>saslearner3</dc:creator>
      <dc:date>2017-01-23T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326637#M271550</link>
      <description>&lt;P&gt;The SAS Filename for ZIP does not provide the option to enter a password, so you must use an external means to unzip the archive.&lt;/P&gt;
&lt;P&gt;Since there are perfectly working free (as in beer and speech) and currently maintained (de)compression tools available (eg 7-zip), not having them installed is (IMHO) just foolish.&lt;/P&gt;
&lt;P&gt;In our organization (large international insurance), 7-zip is installed per default as a standard tool on all desktops (the SAS Server runs on AIX and therefore has compression tools available out of the box). So have your admin install it (or an alternative) on your SAS host (server or desktop).&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326637#M271550</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-23T09:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326643#M271551</link>
      <description>&lt;P&gt;This isn't really a SAS related question. &amp;nbsp;You recieve a third party file, and then you should follow the process set out in your import process document, aligning with the data transfer document you will have created. &amp;nbsp;Thus as part of that process, you will store the file somewhere (pull from somewhere, have them post etc. then save to a know location). &amp;nbsp;Then you would unpack the file, perform routine checks on it, then validate it against your data import agreement. &amp;nbsp;Then finally move it to production for further processing - hence the further processing shouldn't care about ZIP files or anything like that. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326643#M271551</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-23T09:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326645#M271552</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently i am doing what you have suggested but its's &amp;nbsp;a lot of manual work as i keep getting these files on regular basis. As you said that FILENAME for ZIP does not accept passwords, is there any other command which does and thus can save me lot of time ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326645#M271552</guid>
      <dc:creator>saslearner3</dc:creator>
      <dc:date>2017-01-23T09:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326647#M271553</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124864"&gt;@saslearner3&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently i am doing what you have suggested but its's &amp;nbsp;a lot of manual work as i keep getting these files on regular basis. As you said that FILENAME for ZIP does not accept passwords, is there any other command which does and thus can save me lot of time ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not within SAS. And if you get such files on a regular basis, you have to set up a process that gets you the necessary passwords so you can do the extract automatically.&lt;/P&gt;
&lt;P&gt;Also, if you get such files regularly, your IT people MUST give you the tools needed for your work.&lt;/P&gt;
&lt;P&gt;How do you obtain the necessary passwords, anyway?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326647#M271553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-23T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326648#M271554</link>
      <description>&lt;P&gt;Sorry, just wanted to add here, as seen the "&lt;SPAN&gt;getting these files on regular basis". &amp;nbsp;Why are the files password protected then? &amp;nbsp;It sounds to me like your using perhaps email or something to send zipped files and then sending password separately - have seen this done a fair bit and its really not secure at all. &amp;nbsp;ZIP is not a great protection method anyways. &amp;nbsp;If your doing regular transfers of data then you will be wanting to to use some sort of secure file portal (most companies have these) or SFTP. &amp;nbsp;Emailing data around is one great way to lose it or worse.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Speak to your IT group, they will have something in place. &amp;nbsp;Forget the whole password protected zips.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/326648#M271554</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-23T09:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV Directly from Password Protected Zip FIle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/536951#M271555</link>
      <description>Hi Saslearner3, I know this is a very old thread but just wondering if you got it working somehow ? I am in a similar situation where we are getting a csv file password protected in a zip.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 20 Feb 2019 02:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-Directly-from-Password-Protected-Zip-FIle/m-p/536951#M271555</guid>
      <dc:creator>Balli</dc:creator>
      <dc:date>2019-02-20T02:16:22Z</dc:date>
    </item>
  </channel>
</rss>

