<?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: .dat file creation on Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946141#M64246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Filename (including extension) doesn't really matter for these statements, you can choose whatever extension you want. Example given above is a good starter. Please pay attention to the "mode" used for opening dataset/file. Choose the one that meets your requirement. I feel you should use "binary" mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2005 16:51:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-22T16:51:40Z</dc:date>
    <item>
      <title>.dat file creation on Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946139#M64244</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;      I need to create one file with extension ".dat" on Application server. I hv no clue how should I proceed with this.&lt;/P&gt;&lt;P&gt;I just know We can use OPEN DATASET to create, read &amp;amp; write into files on Application server.&lt;/P&gt;&lt;P&gt;How could we deal about extension of these files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 12:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946139#M64244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: .dat file creation on Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946140#M64245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of copying a file on the backend.  &lt;/P&gt;&lt;P&gt;Notice the extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001.

Parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
            d2 type localfile default '/usr/sap/TST/SYS/Data2.dat'.

data: begin of itab occurs 0,
      rec(20) type c,
      end of itab.
data: wa(20) type c.


start-of-selection.

  open dataset d1 for input in text mode.
  if sy-subrc = 0.
    do.
      read dataset d1 into wa.
      if sy-subrc &amp;lt;&amp;gt; 0.
        exit.
      endif.
      itab-rec = wa.
      append itab.
    enddo.
  endif.
  close dataset d1.

  open dataset d2 for output in text mode.
  loop at itab.
    transfer itab to d2.
  endloop.
  close dataset d2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 12:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946140#M64245</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-22T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: .dat file creation on Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946141#M64246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Filename (including extension) doesn't really matter for these statements, you can choose whatever extension you want. Example given above is a good starter. Please pay attention to the "mode" used for opening dataset/file. Choose the one that meets your requirement. I feel you should use "binary" mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2005 16:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-file-creation-on-application-server/m-p/946141#M64246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-22T16:51:40Z</dc:date>
    </item>
  </channel>
</rss>

