Hi, We have been using the macro %Squeeze for years. you can find it in the SAS Notes here: http://support.sas.com/kb/24/804.html 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. 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. I give it here, without support, for others to enjoy or curse at . Mike
... View more