<?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: Compress files in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657462#M22607</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270266"&gt;@VALLY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide some sample data in DATALINES?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 12:03:50 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-06-11T12:03:50Z</dc:date>
    <item>
      <title>Compress files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657427#M22599</link>
      <description>&lt;P&gt;Good day Expects,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 2 data set and i wanna join/compress , however they do not have a common denominator. when i run the bellow script i am only getting 5 records, and i was expecting 19m records , please assist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE SAP_WI AS&lt;BR /&gt;SELECT *&lt;BR /&gt;'W&amp;amp;I' AS BU, A.*&lt;BR /&gt;FROM DTA.WI_ALL_BA_SAP_ACCOUNTS B&lt;BR /&gt;INNER JOIN VBM.SAP_BUT_MATCH A&lt;BR /&gt;ON INPUT(PUT(COMPRESS(INPUT(PUT(ACC_NUM,16.),$16.)||PUT(SERIAL_NUM,Z3.)),$16.),16.) = INPUT(PUT(ZZ0011,$16.),16.)&lt;BR /&gt;;&lt;BR /&gt;QUIT;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 10:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657427#M22599</guid>
      <dc:creator>VALLY</dc:creator>
      <dc:date>2020-06-11T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657462#M22607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270266"&gt;@VALLY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide some sample data in DATALINES?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 12:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657462#M22607</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-06-11T12:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657497#M22615</link>
      <description>&lt;P&gt;Your code as posted won't run anyway, because it misses a comma.&lt;/P&gt;
&lt;P&gt;If you want a macro variable resolved in&lt;/P&gt;
&lt;PRE&gt;'W&amp;amp;I' AS BU&lt;/PRE&gt;
&lt;P&gt;you must use double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 16 digits, you are in the area where numeric precision comes into play.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You concatenate a 16-digit string (result of PUT with $16.) and a 3-digit string (result of PUT with Z3.), and INPUT it with 16. That makes no sense to me. Even with the COMPRESS, once you have more than 13 digits in the first string, this will fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you do all that complicated data cleaning in a separate step first and inspect the results (use OBS= options while testing). In all your datasets, keep identification codes, serial numbers, account numbers and such as left-aligned character. Do NOT store such values as numbers. DON'T.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Compress-files/m-p/657497#M22615</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-11T13:04:14Z</dc:date>
    </item>
  </channel>
</rss>

