<?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: Short dump error when using count(*) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-error-when-using-count/m-p/4252283#M1015090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 03:12:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-11T03:12:13Z</dc:date>
    <item>
      <title>Short dump error when using count(*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-error-when-using-count/m-p/4252282#M1015089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a short dump error when selecting the records &amp;gt;= current date - 30 see the coding and comment please correct the coding I want to know the ztable records it is important for command interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1402345 records available after deleting the records but as the memory is not enough it is giving short dump error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) from ZINT_TABLE&lt;/P&gt;&lt;P&gt;select count(*) from ZINT_MSGS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select * from zint_data&lt;/P&gt;&lt;P&gt;             nto table izint_d2 . "PACKAGE SIZE 20000&lt;/P&gt;&lt;P&gt;   where STATUS = 'OK' AND CREATED_ON &amp;gt;= w_date1.          " VALUE&lt;/P&gt;&lt;P&gt; endselect.**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report z_eslp_command_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cnt type i.&lt;/P&gt;&lt;P&gt;data: cnt2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cnt3 type i.&lt;/P&gt;&lt;P&gt;data: cnt4 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     w_date1 like sy-datum .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;     w_date2 like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: izint_msgs type table of zint_msgs.&lt;/P&gt;&lt;P&gt;data: izint_data type table of zint_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: izint_m2 type table of zint_msgs.&lt;/P&gt;&lt;P&gt;data: izint_d2 type table of zint_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_date1 = sy-datum -  30.&lt;/P&gt;&lt;P&gt;w_date2 = sy-datum -  30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from zint_data&lt;/P&gt;&lt;P&gt;             into table izint_data PACKAGE SIZE 3000&lt;/P&gt;&lt;P&gt;             where STATUS = 'OK' AND CREATED_ON &amp;lt;= w_date1.   " ZERO&lt;/P&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from zint_msgs&lt;/P&gt;&lt;P&gt;             into table izint_msgs  PACKAGE SIZE 3000&lt;/P&gt;&lt;P&gt;              where  CREATED_ON &amp;lt;= w_date2.              " ZERO&lt;/P&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from zint_data&lt;/P&gt;&lt;P&gt;             into table izint_d2 PACKAGE SIZE 20000&lt;/P&gt;&lt;P&gt;   where STATUS = 'OK' AND CREATED_ON &amp;gt;= w_date1.          " VALUE&lt;/P&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from zint_msgs&lt;/P&gt;&lt;P&gt;             into table izint_m2 PACKAGE SIZE 20000&lt;/P&gt;&lt;P&gt;  where CREATED_ON &amp;gt;= w_date2.                            " VALUE&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;select * from zint_data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            into table izint_data2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where STATUS = 'OK' AND CREATED_ON &amp;gt;= CONVERT(CHAR(8), GETDATE() - 30, 112)).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  select * from zint_msgs&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            into table izint_msgs2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where CREATED_ON &amp;gt;= CONVERT(CHAR(8), GETDATE() - 30, 112)).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort izint_data by created_on ascending.&lt;/P&gt;&lt;P&gt;sort izint_msgs by created_on ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort izint_d2 by created_on ascending.&lt;/P&gt;&lt;P&gt;sort izint_m2 by created_on ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table izint_data lines cnt.&lt;/P&gt;&lt;P&gt;describe table izint_msgs lines cnt2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table izint_d2 lines cnt3.&lt;/P&gt;&lt;P&gt;describe table izint_m2 lines cnt4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ ' Note: THE RECORDS COUNTED SHOULD SHOW ZERO ELSE THE SCRIPT FAILED TO RUN' color 3.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;write:/ '1. Records counted in ZINT_DATA   &amp;lt;=current date - 30                   :' color 2,                        cnt color 4.&lt;/P&gt;&lt;P&gt;write:/ '2. Records available in ZINT_DATA &amp;gt;=current date - 30                   'color 4,                   cnt3 color 4 .&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;write:/ '2. Records counted in ZINT_MSGS   &amp;lt;=current date - 30                   :' color 2                 ,                      cnt2 color 4.&lt;/P&gt;&lt;P&gt;write:/ '4. Records available in ZINT_MSGS &amp;gt;=current date - 30                   'color 4  ,            cnt4 color 4 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt; WRITE:/55(60) ' WAGNERS INVESTMENT LIMITED  '.&lt;/P&gt;&lt;P&gt; WRITE:/50(40) ' Command Interface Data' CENTERED .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/50(40) '----&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;' CENTERED .&lt;/P&gt;&lt;P&gt;  FORMAT INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  "FORMAT COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-error-when-using-count/m-p/4252282#M1015089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump error when using count(*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-error-when-using-count/m-p/4252283#M1015090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 03:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-error-when-using-count/m-p/4252283#M1015090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T03:12:13Z</dc:date>
    </item>
  </channel>
</rss>

