<?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: SAS Always freezing when running large scale program? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119767#M24641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EG is enterprise Guide and it looks like a lot of your code is generated from EG or you're running through EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a lot of processing going on, but the datasets appear really small. I would really investigate the program to see if there were better ways to make it efficient. I'm not going to read through all of the code, but you could start on the inner loops and see if you couldnt' use some by processing instead of loops. As well, you seem to create a lot of macro variables, and I wonder if there wasn't a way around some of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 17:29:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-05-01T17:29:59Z</dc:date>
    <item>
      <title>SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119760#M24634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a fairly large program that is about 11,000 lines of macro definition and then a ~50 line triple nested loop which essentially runs the whole program by calling to all of the macros, the inner-most loop iterates from 1 to 7, the outter most loop iterates from 1 to 3, and middle loop iterates anywhere from 1 to 33 times. I.e:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;do i = 1 to 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do j = 1 to 33;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do k = 1 to 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is run with the second loop as&amp;nbsp; do j = 1 to 2; or&amp;nbsp;&amp;nbsp; do j = 1 to 3; it runs okay, but when it gets much more than this SAS freezes every time, it will just say "Running: Exec_All_Models - Running PROC SGPLOT" or something at the bottom frozen, and it will not continue executing, I have to kill the process via task manager and restart SAS every time. It is producing lots of output files including pdfs etc, so I expect it to take a bit of time to run, but it shouldn't just completely freeze after it's gotten past a certain point, it's re-running all the same code just with different data sets. I'm not sure what to do, is there any way to get SAS to handle this or do I just have to always manually edit the loop dimensions and run the program in pieces every time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119760#M24634</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-04-24T18:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119761#M24635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached an example log of it freezing, if that may help...There doesn't seem to be fatal errors present in the log&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119761#M24635</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-04-24T18:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119762#M24636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be genreating more output than SAS output can hold in memory if generating List, HTML and PDF. I've had programs apparently hang when it was just a LOT of HTML tables that were attempting to render.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to search the forum for clearing results and or listing periodically within the program where you final output for sections has been completed, maybe at the end of each "J" loop. I am assuming here that the PDFs are the actual desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119762#M24636</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-04-24T20:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119763#M24637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thing you should do is scan your log for warnings and amend your code so that no warnings are thrown, eg: "WARNING: You must enable ODS graphics with the ODS GRAPHICS ON statement before requesting plots."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also might want to close all ODS destinations you don't need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're running your code out of EG. The freezing could occur because you're generating a lot of output which EG might try to open. If not done so already "un-tick" in EG under "Tools/Options/Result General" box "Automatically open data or results when generated" and under&amp;nbsp; "Tools/Options/Data General" box "Automatically open data when added to project".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 00:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119763#M24637</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-04-25T00:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119764#M24638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I was aware of that warning, Patrick, I intentionally set ods graphics off, that tends to speed it up because it doesn't export all of the proc model plots to the pdf (we do in general want these plots, but I was trying to speed it up and get it to at least run without freezing).&lt;/P&gt;&lt;P&gt;- I did try setting those two options in Tools to disallow opening data results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ballardw, Yes I do want the pdf output, but all output I need is exported as pdf/xls files. I only need the files generated by ods pdf, and proc export. I do not need any of the output data or pdf results within sas that it adds to the project. I've been looking for a way to disable this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119764#M24638</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-04-25T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119765#M24639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So does it work now or do you still have "freezing" problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my theory is correct that the freezing occurs because of the volume of results streamed back to EG then you could also try and run your job in batch using the "systask" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had once a "EG freezing" problem at a site not because there was any issue with EG but the network interrupted the connection if it "thought" that a client was idle for more than 5 minutes. So when executing long running jobs I basically needed to do "something" with EG like opening a file simply to keep the connection alive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 10:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119765#M24639</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-04-26T10:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119766#M24640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it still has those freezing problems, setting those data results options didn't yield any really noticeable difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for systask I will research how to use and look into that. As for doing something with "EG," what exactly is EG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 17:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119766#M24640</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-05-01T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119767#M24641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EG is enterprise Guide and it looks like a lot of your code is generated from EG or you're running through EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a lot of processing going on, but the datasets appear really small. I would really investigate the program to see if there were better ways to make it efficient. I'm not going to read through all of the code, but you could start on the inner loops and see if you couldnt' use some by processing instead of loops. As well, you seem to create a lot of macro variables, and I wonder if there wasn't a way around some of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 17:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119767#M24641</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-01T17:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119768#M24642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh I see, yes I user SAS Enterprise Guide, so Patrick, you mean just opening a file in the SAS interface will keep it from "losing connection"/freezing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Reeza, yes you definitely don't want to read through the 10,000 lines of code I'm sure ;-P. However, on a serious note, I'm not sure what you mean by "use some by processing instead of loops"? I need to loop over all of the array items; I am unaware of any computational way to process a list of items without iterating over the items?&lt;/P&gt;&lt;P&gt;And yes I do create a lot of macro variables, but unfortunately each one of them is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My background is in computer science and was a software engineer for some years in the field, and so I am familiar with programmatic ways to increase efficiency of a program and remove unnecessary statements, but I don't think I can optimize this program much more without removing functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of the information/suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 18:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119768#M24642</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-05-01T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119769#M24643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I scanned your code again, and see you've used BY for merging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes its better to transpose your data (or in your case not transpose) and process in by rather than with an array that goes across the data.&lt;/P&gt;&lt;P&gt;using the by will allow you to summarize things in some more automated fashions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if you know about BY processing, but usually it speeds things up.&lt;/P&gt;&lt;P&gt;And its one of the reasons that SAS is so powerful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a good paper on BY processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/wuss/2008/ess/ess11.pdf" title="http://www.lexjansen.com/wuss/2008/ess/ess11.pdf"&gt;http://www.lexjansen.com/wuss/2008/ess/ess11.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 19:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119769#M24643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-01T19:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119770#M24644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a problem like yours I would be tempted to try running your program as a batch job. If your batch job still has the "freeze" problem than you can be sure your issues are to do with the code and how it is running on the SAS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't freeze then the problem is specific to the EG environment and how your code interacts with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 20:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119770#M24644</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-05-01T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119771#M24645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure this helps but a few years ago I was producing thousands of rft output files and found there was a windows handle limit on the output files of about 10,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to break the program into pieces and run each piece in separate SAS sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 23:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119771#M24645</guid>
      <dc:creator>MumSquared</dc:creator>
      <dc:date>2013-11-04T23:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119772#M24646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might help to run SAS with the -unbuflog option.&amp;nbsp; Using it, you're more likely to see the last executed step or procedure.&amp;nbsp; Production of the log might take longer, especially given a large job with copious output, but the log is less likely to be truncated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 15:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119772#M24646</guid>
      <dc:creator>scmebu</dc:creator>
      <dc:date>2013-11-05T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119773#M24647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it looks like you are pushing a LOT of code onto the stack using CALL EXECUTE in the data step at about line 10,080 in your log.&amp;nbsp; There are timing issues that can occur when you try to call a macro inside of a CALL EXECUTE().&amp;nbsp; One solution is to make sure to use %NRSTR() in the text that is passed to CALL EXECUTE so that the macro call is pushed onto the stack instead of the code that the macro generates. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10092&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Set_Product_Specifics_call = '&lt;STRONG&gt;%nrstr(&lt;/STRONG&gt;%Set_Product_Specifics&lt;STRONG&gt;)&lt;/STRONG&gt;(dep_rate='||deposit_rates&lt;J&gt;||')';&lt;/J&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10093&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;call execute(Set_Product_Specifics_call);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I find that it is much easier to use the PUT statement to generate the code to a file and then %INC the generated file instead of using CALL EXECUTE.&amp;nbsp; Usually eliminates a lot of string concatenation and number to text conversions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119773#M24647</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-05T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Always freezing when running large scale program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119774#M24648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this might work for that data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*This data step runs the entire model execution &amp;amp; data exportation process, that is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; data for accounts, market rates, and shock scenarios is established here, and then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; all subsequent macro calls stem from this data step:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;file code temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; file code ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set merge_shorts_deposits;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /*Create array for the 3 things we are iterating over - deposit accounts, market&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rates, and [short rate] shock scenarios */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; array shocks (7) shock_1-shock_7;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; array short_rates_main (3) Short_Rate_1-Short_Rate_3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; array deposit_rates(33) Deposit_Rate_1-Deposit_Rate_33;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; do i = 1 to 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do j = 6,20,21,27,30,32,33 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Set_Product_Specifics(dep_rate=' deposit_rates&lt;J&gt; ')';&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do k = 1 to 7;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Create_Fundamental_Datasets'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '(short_rate=' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',dep_rate=' deposit_rates&lt;J&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',shock_scenario=' shocks&lt;K&gt;&lt;/K&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Execute_Old_Model(shock_scenario=' shocks&lt;K&gt; ')';&lt;/K&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Execute_All_Models(shock_scenario=' shocks&lt;K&gt; ')';&lt;/K&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Export_All_Output'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '(pdf_file=&amp;amp;rootnode\' deposit_rates&lt;J&gt; +(-1) '_vs' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',forecast_file=&amp;amp;rootnode\Forecasts_' deposit_rates&lt;J&gt; +(-1) "_vs" short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',stats_file=&amp;amp;rootnode\ModelStatistics_' deposit_rates&lt;J&gt; +(-1) "_vs" short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',short_rate=' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',dep_rate=' deposit_rate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Calculate_Ex_Posts;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Export_Old_Output'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '(pdf_file=&amp;amp;rootnode\' deposit_rates&lt;J&gt; +(-1) '_vs' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',forecast_file=&amp;amp;rootnode\Forecasts_' deposit_rates&lt;J&gt; +(-1) "_vs" short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',stats_file=&amp;amp;rootnode\ModelStatistics_' deposit_rates&lt;J&gt; +(-1) "_vs" short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',short_rate=' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',dep_rate=' deposit_rate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%Export_All_Estimates'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '(dep_rate=' deposit_rates&lt;J&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ',short_rate=' short_rates_main&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let rootnode=C:\Documents and Settings\ETRORMC\My Documents\SAS_Test_Output ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%include code / source2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Always-freezing-when-running-large-scale-program/m-p/119774#M24648</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-05T17:38:59Z</dc:date>
    </item>
  </channel>
</rss>

