<?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: READ DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679580#M886094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET dset INTO dobj [MAXIMUM LENGTH mlen] &lt;/P&gt;&lt;P&gt;                             [[ACTUAL] LENGTH alen]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: file          TYPE string VALUE `flights.dat`, &lt;/P&gt;&lt;P&gt;      hex_container TYPE x LENGTH 1000, &lt;/P&gt;&lt;P&gt;      len           TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;spfli&amp;gt; TYPE spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD &amp;lt;spfli&amp;gt; LENGTH len IN BYTE MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET file FOR INPUT IN BINARY MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN hex_container TO &amp;lt;spfli&amp;gt; CASTING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO. &lt;/P&gt;&lt;P&gt;  READ DATASET file INTO hex_container MAXIMUM LENGTH len. &lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;    WRITE: / &amp;lt;spfli&amp;gt;-carrid, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-connid, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-countryfr, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-cityfrom, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-cityto, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-fltime, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-distance. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    EXIT. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 09:21:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T09:21:41Z</dc:date>
    <item>
      <title>READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679575#M886089</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;Can any one tell what is the difference between MAXIMUM LENGTH and ACTUAL LENGTH addition in READ DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679575#M886089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679576#M886090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679576#M886090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679577#M886091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ DATASET &amp;lt;dsn&amp;gt; INTO &amp;lt;f&amp;gt; 
[MAXIMUM LENGTH &amp;lt;maxlen&amp;gt;]
[ACTUAL LENGTH &amp;lt;len&amp;gt;].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads the contents of the file &amp;lt;dsn&amp;gt; on the application server to the variable &amp;lt;f&amp;gt;. The amount of data can be specified using MAXIMUM LENGTH. The number of bytes transferred can be written to &amp;lt;len&amp;gt; using ACTUAL LENGTH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679577#M886091</guid>
      <dc:creator>ak_upadhyay</dc:creator>
      <dc:date>2008-04-21T09:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679578#M886092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET &amp;lt;dsn&amp;gt; INTO &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;MAXIMUM LENGTH &amp;lt;maxlen&amp;gt;&lt;/P&gt;&lt;P&gt;ACTUAL LENGTH &amp;lt;len&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads the contents of the file &amp;lt;dsn&amp;gt; on the application server to the variable &amp;lt;f&amp;gt;. The amount of data can be specified using MAXIMUM LENGTH. The number of bytes transferred can be written to &amp;lt;len&amp;gt; using ACTUAL LENGTH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679578#M886092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679579#M886093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAXIMUM LENGTH :  This addition determines how many characters or how many bytes maximum are read from the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTUAL LENGTH This addition assigns the number of characters or bytes to be read from the file to the data object . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679579#M886093</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-21T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679580#M886094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET dset INTO dobj [MAXIMUM LENGTH mlen] &lt;/P&gt;&lt;P&gt;                             [[ACTUAL] LENGTH alen]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: file          TYPE string VALUE `flights.dat`, &lt;/P&gt;&lt;P&gt;      hex_container TYPE x LENGTH 1000, &lt;/P&gt;&lt;P&gt;      len           TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;spfli&amp;gt; TYPE spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD &amp;lt;spfli&amp;gt; LENGTH len IN BYTE MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET file FOR INPUT IN BINARY MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN hex_container TO &amp;lt;spfli&amp;gt; CASTING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO. &lt;/P&gt;&lt;P&gt;  READ DATASET file INTO hex_container MAXIMUM LENGTH len. &lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;    WRITE: / &amp;lt;spfli&amp;gt;-carrid, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-connid, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-countryfr, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-cityfrom, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-cityto, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-fltime, &lt;/P&gt;&lt;P&gt;             &amp;lt;spfli&amp;gt;-distance. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    EXIT. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/3679580#M886094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T09:21:41Z</dc:date>
    </item>
  </channel>
</rss>

