<?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 Ran out of memory, during the script. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Ran-out-of-memory-during-the-script/m-p/4045#M4045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version 7.0.2: 2 GB memory, Windows 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a for loop (that loops twice for now). Within the for loop I open a database connection and query a get a returned table. The returned table is about 10 columns, 1.7M rows. I then save the table and close it, and then on to the next table. The issue is the memory is never released from the first table, so when fetching the records from the next loops query, I get a memory exception. Is there a way to permanently close the table and its memory from within the for loop? Thanks Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see code snippet below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;myList &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;words&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;Munger&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;p&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"wafers"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;]&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;z&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;","&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;" "&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;))&lt;/STRONG&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;//puts wafer numbers into a list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;N &lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;myList&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// counts the number of wafers in the list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;N&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;++,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waf_id &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; myList&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waf_table &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; myList&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;length&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_id&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-size: 8pt; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"('"&lt;/SPAN&gt; ||&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"')"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"SELECT * "&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; ls_sql &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"&amp;nbsp; FROM WDBP.dbo.SF_QST "&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; ls_sql &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;" WHERE WAFER_ID IN "&lt;/SPAN&gt; ||&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id &lt;/SPAN&gt;;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;show&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;ls_sql&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// shows the SQL statement in the log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;OpenDatabase&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"DSN=WDBP;UID=WDFREP;PWD=wdfrep;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;ls_sql&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_table&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// queries the database&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;data table&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_table&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;filename&lt;/SPAN&gt; = waf_table||".jmp";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000ff; font-size: 8pt;"&gt;show&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: 'Courier New';"&gt;(filename);&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;close&lt;/SPAN&gt;(dt, save(filename));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 23:54:06 GMT</pubDate>
    <dc:creator>cpaz</dc:creator>
    <dc:date>2011-11-28T23:54:06Z</dc:date>
    <item>
      <title>Ran out of memory, during the script.</title>
      <link>https://community.jmp.com/t5/Discussions/Ran-out-of-memory-during-the-script/m-p/4045#M4045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version 7.0.2: 2 GB memory, Windows 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a for loop (that loops twice for now). Within the for loop I open a database connection and query a get a returned table. The returned table is about 10 columns, 1.7M rows. I then save the table and close it, and then on to the next table. The issue is the memory is never released from the first table, so when fetching the records from the next loops query, I get a memory exception. Is there a way to permanently close the table and its memory from within the for loop? Thanks Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see code snippet below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;myList &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;words&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;Munger&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;p&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"wafers"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;]&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;z&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;","&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;" "&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;))&lt;/STRONG&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;//puts wafer numbers into a list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;N &lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;myList&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// counts the number of wafers in the list&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;N&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;++,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waf_id &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; myList&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waf_table &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; myList&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;length&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_id&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-size: 8pt; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"('"&lt;/SPAN&gt; ||&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"')"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"SELECT * "&lt;/SPAN&gt;;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; ls_sql &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"&amp;nbsp; FROM WDBP.dbo.SF_QST "&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sql &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; ls_sql &lt;/SPAN&gt;|| &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;" WHERE WAFER_ID IN "&lt;/SPAN&gt; ||&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt; waf_id &lt;/SPAN&gt;;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;show&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;ls_sql&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// shows the SQL statement in the log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;OpenDatabase&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 8pt;"&gt;"DSN=WDBP;UID=WDFREP;PWD=wdfrep;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;ls_sql&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_table&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;// queries the database&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 8pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 8pt;"&gt;data table&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 8pt;"&gt;waf_table&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;filename&lt;/SPAN&gt; = waf_table||".jmp";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000ff; font-size: 8pt;"&gt;show&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: 'Courier New';"&gt;(filename);&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;close&lt;/SPAN&gt;(dt, save(filename));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 23:54:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ran-out-of-memory-during-the-script/m-p/4045#M4045</guid>
      <dc:creator>cpaz</dc:creator>
      <dc:date>2011-11-28T23:54:06Z</dc:date>
    </item>
    <item>
      <title>Ran out of memory, during the script.</title>
      <link>https://community.jmp.com/t5/Discussions/Ran-out-of-memory-during-the-script/m-p/4046#M4046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; OK. Issue is solved by placing a "wait(5)" command after the "close(dt, save(filename))" at the end of the loop. JMP had not completed the filesave, before the script went on for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this by performing some tests, and dumb luck..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 01:34:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ran-out-of-memory-during-the-script/m-p/4046#M4046</guid>
      <dc:creator>cpaz</dc:creator>
      <dc:date>2011-11-29T01:34:53Z</dc:date>
    </item>
  </channel>
</rss>

