<?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: A useful update to the Squeeze macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-useful-update-to-the-Squeeze-macro/m-p/611132#M178066</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111790"&gt;@mwhitaker&lt;/a&gt;&amp;nbsp; - Thanks for posting. I fully understand why you have enhanced %SQUEEZE for MS SQL Server ODBC tables. The default sizes of character variables in SAS tables created from SQL Server are usually far too big and result in large disk file sizes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative approach for dealing with data coming in from external databases is to use the SAS option COMPRESS - BINARY is my preferred method. While it isn't as tidy as %SQUEEZE, it deals with the file size issue very effectively with little impact on CPU.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 20:22:05 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-12-11T20:22:05Z</dc:date>
    <item>
      <title>A useful update to the Squeeze macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-useful-update-to-the-Squeeze-macro/m-p/611116#M178054</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; We have been using the macro %Squeeze for years. you can find it in the SAS Notes here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/804.html" target="_self"&gt;&lt;FONT&gt;http://support.sas.com/kb/24/804.html&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Attached is an update to this macro, where I have expanded it's scope to include Libnames defined on Databases, ODBC for MS SQL Server, or maybe others. It depends on the implicit pass through abilities of that SAS-Database Relationship for it to work well. That is, the SQL used to get the sizes of the columns needed to reduce the overall size of the table needs to be performed on the database server side. It works for us using ODBS to a MS SQL Server database. I have no access to other databases, so there has been no testing for these.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; We are using it to insure the size of the data coming from these places are reasonable, and maybe to speed up the writing of this data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I give it here, without support, for others to enjoy or curse at .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Mike&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 19:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-useful-update-to-the-Squeeze-macro/m-p/611116#M178054</guid>
      <dc:creator>mwhitaker</dc:creator>
      <dc:date>2019-12-11T19:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: A useful update to the Squeeze macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-useful-update-to-the-Squeeze-macro/m-p/611132#M178066</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111790"&gt;@mwhitaker&lt;/a&gt;&amp;nbsp; - Thanks for posting. I fully understand why you have enhanced %SQUEEZE for MS SQL Server ODBC tables. The default sizes of character variables in SAS tables created from SQL Server are usually far too big and result in large disk file sizes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative approach for dealing with data coming in from external databases is to use the SAS option COMPRESS - BINARY is my preferred method. While it isn't as tidy as %SQUEEZE, it deals with the file size issue very effectively with little impact on CPU.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 20:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-useful-update-to-the-Squeeze-macro/m-p/611132#M178066</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-11T20:22:05Z</dc:date>
    </item>
  </channel>
</rss>

