<?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 Splitting the DAT  file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807613#M346563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i have very large DAT file.  My requirement is to Splitt the DAT file into n number of smaller dat  files. How to do this . Send me if you have any code which performs the above task .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Krish...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 08:11:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T08:11:04Z</dc:date>
    <item>
      <title>Splitting the DAT  file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807613#M346563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i have very large DAT file.  My requirement is to Splitt the DAT file into n number of smaller dat  files. How to do this . Send me if you have any code which performs the above task .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Krish...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 08:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807613#M346563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T08:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the DAT  file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807614#M346564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Krish,&lt;/P&gt;&lt;P&gt;Check&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1589181"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 08:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807614#M346564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the DAT  file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807615#M346565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you are referring to file on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the assumptions:&lt;/P&gt;&lt;P&gt;1. Upload data to an internal table say itab.&lt;/P&gt;&lt;P&gt;2. Original filename is fname.&lt;/P&gt;&lt;P&gt;3. No. of records to be in a file: 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code might give you some idea:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: rec type i value 10,
      count type i value 1,
      file_ext type i value 1.
data: fname type rlgrap-filename,
      fname_ext type rlgrap-filename.

loop at itab.
     if count = rec or count = 1.
        close dataset fname_ext.
        fname_ext = file_ext.
        concatenate fname fname_ext into fname_ext.
        open dataset fname_ext for output in text mode encoding default.
        count = 1.
     endif.
     transfer itab to fname_ext.
     count = count + 1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 08:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-the-dat-file/m-p/1807615#M346565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T08:24:17Z</dc:date>
    </item>
  </channel>
</rss>

