<?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: Open Dataset Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494678#M1932416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you opened your file for reading (I suppose) I think the data is not put at risk. However in my opinion it would be neater to open/close for each processing step if it takes that much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered to saving the position and next time use OPEN DATASET with addition &lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;AT POSITION? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 10:22:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-01-27T10:22:24Z</dc:date>
    <item>
      <title>Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494677#M1932415</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 just curious, is there any time limitation&amp;nbsp; as in up to what time limit the file can remain open.&amp;nbsp; The development scenario is that I am opening a large file using OPEN DATASET command , then the file contents are read using READ DATASET command. As soon a first x data is read from the file, parallel processing of the records starts(processing includes database commit and rollback) . After the x records are processed, I go for next x records, read and processing. The process is suppose to run for 12-15 hours. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand opening the file for a long time can restrict the access of the file for other programs, but is there any chance I can loose data from the file due to long run time. My goal is to reduce the memory intake by processing the file data in packets, rather than reading all the file data into an internal table and start processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494677#M1932415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T09:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494678#M1932416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you opened your file for reading (I suppose) I think the data is not put at risk. However in my opinion it would be neater to open/close for each processing step if it takes that much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered to saving the position and next time use OPEN DATASET with addition &lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;AT POSITION? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494678#M1932416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T10:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494679#M1932417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have considered AT POSITION but just wanted to know if long run time could lead to data loss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494679#M1932417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T10:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494680#M1932418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ritesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my experience i have not run into a timeout scenario with OPEN DATASET in long running programs or data loss. I think what your wanting todo is possible and you should not have any issues with that as long as you can guarentee that no other programs will attempt to change the file your working on until your finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now having said that i agree with Gabor that it would be more efficient to use the AT POSITION code and do a open/close data set as this will ensure your resources stay free.You could even look into doing parallel processing with this method if you wanted to help speed up processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoffery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 12:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494680#M1932418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494681#M1932419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geoffery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the AT POSITION syntax, SAP recommends to use this when we are opening the file in binary mode, but in my case I am opening the file in text mode. So, I am in a fix whether to use it or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494681#M1932419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494682#M1932420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ritesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a specific requirement to do this in text mode? Because it seems like what you are wanting to do would be best done using the default mode in sap which is binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoffery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494682#M1932420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-27T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494683#M1932421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to run this scenario by your Basis team. "I will use a file to avoid using memory" sounds like something we would do in the good old mainframe days when hardware resources were at premium. In these days of in-memory databases such approach seems questionable, to say the least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for data loss - yes, it is, of course, possible if a program gets interrupted unexpectedly. Just like if anything was in memory and not in the database it would be lost as well. Files do not have any magical properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 22:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494683#M1932421</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-01-27T22:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494684#M1932422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks All. Appreciate your inputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 08:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494684#M1932422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-28T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494685#M1932423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geoffery, its just that I am enhancing an existing logic and the file contents are being read in text mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 08:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-query/m-p/11494685#M1932423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-28T08:08:26Z</dc:date>
    </item>
  </channel>
</rss>

