<?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: How do I use the Compress function without crashing my session in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435623#M282044</link>
    <description>&lt;P&gt;Absolutely right, move keep= to the SET statement.&amp;nbsp; The way the program is written now, why bother to create the new variable?&amp;nbsp; It wouldn't even become part of the new data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this program really crashes EG, you might just need to clean out the WORK area (or more simply, just close down EG and start up a new session).&amp;nbsp; From the names of your data sets, it's possible you have run so many tests that you are filling up the WORK area with data sets that you no longer need.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 13:26:04 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-02-09T13:26:04Z</dc:date>
    <item>
      <title>How do I use the Compress function without crashing my session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435596#M282041</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compress unwanted characters from a variable to remain with digits only. The dataset has about 1.8 million records and everytime I run the code EG crashes. I have tried restricting the OBS to say 1000 and that works fine. How can I avoid EG crashing when I run the code on the whole dataset. Code example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; test_003&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; =&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;variable_1&lt;/P&gt;&lt;P&gt;variable_2&lt;/P&gt;&lt;P&gt;variable_3&lt;/P&gt;&lt;P&gt;variable_4);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.test_oo1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;variable_4_new=compress(variable_4,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'kd'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am trying to compress variable_4 and have digits only remaining without out crashing my session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 11:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435596#M282041</guid>
      <dc:creator>f_shoko</dc:creator>
      <dc:date>2018-02-09T11:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Compress function without crashing my session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435600#M282042</link>
      <description>&lt;P&gt;It sounds like some sort of memory leak or disk space issue although 1.8M obs isn't that huge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try increasing the amount of available memory with the Memsize option&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0srij4mcdpzv2n1vtphltb00xjw.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0srij4mcdpzv2n1vtphltb00xjw.htm&lt;/A&gt; although note that this has to be done at invocation of the session or in the config file.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 11:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435600#M282042</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-02-09T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Compress function without crashing my session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435603#M282043</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;How many variables are in &lt;FONT size="3"&gt;work.test_oo1&lt;/FONT&gt;? Moving the keep-Option to the set-statement could help.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 12:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435603#M282043</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-02-09T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Compress function without crashing my session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435623#M282044</link>
      <description>&lt;P&gt;Absolutely right, move keep= to the SET statement.&amp;nbsp; The way the program is written now, why bother to create the new variable?&amp;nbsp; It wouldn't even become part of the new data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this program really crashes EG, you might just need to clean out the WORK area (or more simply, just close down EG and start up a new session).&amp;nbsp; From the names of your data sets, it's possible you have run so many tests that you are filling up the WORK area with data sets that you no longer need.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435623#M282044</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-09T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Compress function without crashing my session</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435639#M282045</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;variable_4_new=compress(variable_4, ,'kd');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-the-Compress-function-without-crashing-my-session/m-p/435639#M282045</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-02-09T13:35:45Z</dc:date>
    </item>
  </channel>
</rss>

