<?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 Codepage for DOS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730627#M318161</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;I want to import a file from a DOS application. In the file is a character in DOS format (e.g. ï) which has to be translated to '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use FM WS_UPLOAD and use filetype IBM all is working fine. SAP returns the value '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the program needs to be run in the background and has to read the file from the application server, so i can't use WS_UPLOAD or GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using OPEN DATASET dsn FOR INPUT IN LEGACY TEXT MODE CODE PAGE cp.&lt;/P&gt;&lt;P&gt;Does anybody know which Code page should be used to be able to read the 'strange' characters? Or is it possible to solve it in another way?&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;Marcel Leeraar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 12:15:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T12:15:30Z</dc:date>
    <item>
      <title>Codepage for DOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730627#M318161</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;I want to import a file from a DOS application. In the file is a character in DOS format (e.g. ï) which has to be translated to '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use FM WS_UPLOAD and use filetype IBM all is working fine. SAP returns the value '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the program needs to be run in the background and has to read the file from the application server, so i can't use WS_UPLOAD or GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using OPEN DATASET dsn FOR INPUT IN LEGACY TEXT MODE CODE PAGE cp.&lt;/P&gt;&lt;P&gt;Does anybody know which Code page should be used to be able to read the 'strange' characters? Or is it possible to solve it in another way?&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;Marcel Leeraar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 12:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730627#M318161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Codepage for DOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730628#M318162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I resolved that problem with this the code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward points if it was helpful.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS .&lt;/P&gt;&lt;P&gt;DATA texto(10).&lt;/P&gt;&lt;P&gt;DATA var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Subimos los archivos de carga&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET p_file IN TEXT MODE FOR INPUT ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO .&lt;/P&gt;&lt;P&gt;      READ DATASET p_file INTO linea.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;      MOVE linea TO record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND record.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE: sy-subrc.&lt;/P&gt;&lt;P&gt;    WRITE: 'Error en el Open Dataset'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+indice(1) .&lt;/P&gt;&lt;P&gt;        IF var CA '0123456789ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz:;.,'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ADD 1 TO indice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        Reemplazamos # por /&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          +indice(1) = '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ADD 1 TO indice.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Dividimos los campos&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SPLIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Eric Hernandez Pardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 15:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730628#M318162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Codepage for DOS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730629#M318163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this helps in my case. I want to convert between code pages, it seems to me that your code does something else (maybe i'm wrong).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the problem myself in the meanwhile.&lt;/P&gt;&lt;P&gt;The following code converts the read string from DOS format to the SAP system format (code page 1100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
OPEN DATASET l_recht
      FOR INPUT
      IN LEGACY TEXT MODE
      CODE PAGE '1103'
      MESSAGE p_mess
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for the effort to look at my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 15:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codepage-for-dos/m-p/1730629#M318163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T15:25:54Z</dc:date>
    </item>
  </channel>
</rss>

