<?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 Data FILE .gz from SERVER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302047#M1990345</link>
    <description>&lt;P&gt;My file is in .DAT.GZ I tried using below syntax using BINARY mode&lt;/P&gt;&lt;P&gt;OPEN DATASET rv_file FOR INPUT IN BINARY MODE FILTER 'uncompress'.&lt;/P&gt;&lt;P&gt;in READ statement V_DATA is showing with '#########' and program is terminating.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 16:32:01 GMT</pubDate>
    <dc:creator>former_member747243</dc:creator>
    <dc:date>2021-05-20T16:32:01Z</dc:date>
    <item>
      <title>Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302040#M1990338</link>
      <description>&lt;P&gt;Dear SAP Experts,&lt;/P&gt;
  &lt;P&gt;Do you know whether exist a functionality within SAP to "unzip" a .gz file extension?&lt;/P&gt;
  &lt;P&gt;In the Server, we have compress files with this extension and we have to develop a new custom program "unzip" the files and read data.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1894521-kv5oo.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Best Regards and thanks in advance for your ideas.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 10:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302040#M1990338</guid>
      <dc:creator>former_member474827</dc:creator>
      <dc:date>2021-02-12T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302041#M1990339</link>
      <description>&lt;P&gt;Do you have test CL_ABAP_UNGZIP_TEXT_STREAM? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302041#M1990339</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-02-12T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302042#M1990340</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Frederic suggested CL_ABAP_UNGZIP_TEXT_STREAM. That should work, but seems a bit tricky.&lt;/P&gt;&lt;P&gt;There is also CL_ABAP_GZIP:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Class CL_ABAP_GZIP Functionality&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This class enables you to perform data compression with the DEFLATE algorithm as well as create and decode GZIP files.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The DEFLATE algorithm is used in different file formats, including GZIP and ZIP for data compression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The following methods enable you to compress or decompress texts (as C strings or C fields) or binary data (as X strings or X fields) using the DEFLATE algorithm.&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;COMPRESS_TEXT&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;COMPRESS_BINARY&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;DECOMPRESS_TEXT&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;DECOMPRESS_BINARY&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;The following methods create or decode GZIP files in accordance with the format specification in RFC 1952, and allow you to access the relevant fields there.&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;COMPRESS_BINARY_WITH_HEADER&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;DECOMPRESS_BINARY_WITH_HEADER&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;The class can be used to create and decode ZIP files. One of the main differences between ZIP files and GZIP files is that ZIP files can contain multiple compressed files.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Further information&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For further information, refer to the individual methods.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302042#M1990340</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-02-12T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302043#M1990341</link>
      <description>&lt;P&gt;Hi, plz let me know if you have implemented the process, I have to do same for my project.&lt;/P&gt;&lt;P&gt;Appreciate your help and suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 02:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302043#M1990341</guid>
      <dc:creator>former_member747243</dc:creator>
      <dc:date>2021-05-20T02:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302044#M1990342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've solved with the simple code:&lt;/P&gt;&lt;P&gt;&lt;B&gt;OPEN DATASET lv_fname FOR INPUT IN TEXT MODE ENCODING DEFAULT FILTER 'uncompress'.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;After this , u can do the READ DATASET:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DO.&lt;BR /&gt; READ DATASET lv_fname INTO l_content.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDDO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302044#M1990342</guid>
      <dc:creator>former_member474827</dc:creator>
      <dc:date>2021-05-20T07:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302045#M1990343</link>
      <description>&lt;P&gt;Thank you so much will check and update the status.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 15:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302045#M1990343</guid>
      <dc:creator>former_member747243</dc:creator>
      <dc:date>2021-05-20T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302046#M1990344</link>
      <description>&lt;P&gt;I tried using below code but variable V_DATA is showing blank no data. &lt;/P&gt;&lt;P&gt;DATA: rv_file(80) TYPE C, &lt;/P&gt;&lt;P&gt;           v_data(150) TYPE c. &lt;/P&gt;&lt;P&gt;rv_file = '/shared/ecd/evnt/processed/old/evntarz20210402031000odr3.dat.gz'. &lt;/P&gt;&lt;P&gt;OPEN DATASET rv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT FILTER 'uncompress'.&lt;/P&gt;&lt;P&gt;
IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;DO. &lt;/P&gt;&lt;P&gt;  READ DATASET rv_file INTO v_data. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;  write: 'success'. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Note: if v_data is declared XSTRING the program is going to dump&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 16:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302046#M1990344</guid>
      <dc:creator>former_member747243</dc:creator>
      <dc:date>2021-05-20T16:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data FILE .gz from SERVER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302047#M1990345</link>
      <description>&lt;P&gt;My file is in .DAT.GZ I tried using below syntax using BINARY mode&lt;/P&gt;&lt;P&gt;OPEN DATASET rv_file FOR INPUT IN BINARY MODE FILTER 'uncompress'.&lt;/P&gt;&lt;P&gt;in READ statement V_DATA is showing with '#########' and program is terminating.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 16:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-file-gz-from-server/m-p/12302047#M1990345</guid>
      <dc:creator>former_member747243</dc:creator>
      <dc:date>2021-05-20T16:32:01Z</dc:date>
    </item>
  </channel>
</rss>

