<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogging about all things SAS &#187; SAS winzip zip</title>
	<atom:link href="http://blog.saasinct.com/tag/sas-winzip-zip/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.saasinct.com</link>
	<description>::       Sharing with the world everything we discover about SAS.</description>
	<lastBuildDate>Wed, 01 Sep 2010 06:56:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Making SAS Zippy&#8217;d doh da</title>
		<link>http://blog.saasinct.com/2008/06/24/making-sas-zippyd-doh-da/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=making-sas-zippyd-doh-da</link>
		<comments>http://blog.saasinct.com/2008/06/24/making-sas-zippyd-doh-da/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 09:28:09 +0000</pubDate>
		<dc:creator>Shane Gibson</dc:creator>
				<category><![CDATA[Code and Stuff]]></category>
		<category><![CDATA[SAS winzip zip]]></category>

		<guid isPermaLink="false">http://blog.sasinct.com/2008/06/24/making-sas-zippyd-doh-da/</guid>
		<description><![CDATA[I often see people on the SAS forums asking how to read a zip file in SAS. I came across a great set of tips over at the Computer Measurement Group And one of the tips was the following on how to access zip files via SAS code. Using the ZIP engine to read zip [...]]]></description>
			<content:encoded><![CDATA[<p>I often see people on the SAS forums asking how to read a zip file in SAS.</p>
<p>I came across a great set of tips over at the <a href="http://www.cmg.org/measureit/issues/mit47/m_47_4.html">Computer Measurement Group</a></p>
<p>And one of the tips was the following on how to access zip files via SAS code.</p>
<hr />Using the ZIP engine to read zip filesThere is a currently undocumented filename engine available in SAS 9 that can be used to read from compressed ZIP files directly. You  simply specify the engine “SASZIPAM” on a filename statement, and when 		referring to it you must specify the file within it that you wish to read.</p>
<p>In the example below “tomcat.zip” contains a number of files. I want to read “tomat.log” and therefore specify “in(tomcat.log)”, where “in” is the libref  and “tomcat.log” is the file I will read from the zip file.</p>
<p class="PaperHeader2">Sample SAS Program</p>
<blockquote><p> <font color="#999999"><span style="background: white none repeat scroll 0% 50%; color: blue; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">filename</span><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"> in saszipam <span style="color: purple">&#8216;c:\tomcat.zip&#8217;</span>;</span></font></p>
<p><font color="#999999"><strong><span style="background: white none repeat scroll 0% 50%; color: navy; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" lang="IT">data</span></strong><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" lang="IT"> <span style="color: blue">_null_</span>;</span></font></p>
<p><font color="#999999"><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" lang="IT">  <span style="color: blue">infile</span> in(tomcat.log);</span></font></p>
<p><font color="#999999"><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" lang="IT">  </span><span style="background: white none repeat scroll 0% 50%; color: blue; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">input</span><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"> 		;</span></font></p>
<p><font color="#999999"><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">  <span style="color: blue">put</span> <span style="color: blue">_infile_</span>;</span></font></p>
<p><font color="#999999"><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">  <span style="color: blue">if</span> _n_&gt;<strong><span style="color: teal">10</span></strong> <span style="color: blue">then</span></span></font></p>
<p class="PaperSourceCode"><font color="#999999"><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">    <span style="color: blue">stop</span> ;</span></font></p>
<p><font color="#999999"><strong><span style="background: white none repeat scroll 0% 50%; color: navy; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">run</span></strong><span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">;</span></font></p></blockquote>
<blockquote></blockquote>
<hr />Easy peasy!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.saasinct.com/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.saasinct.com/2008/06/24/making-sas-zippyd-doh-da/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
