<?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: OPEN DATASET STATEMENT- for different languages. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807184#M1468419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  It is fixed length format. Here i can not paste correctly hence included .(dots) below. Actually that dots are spacesin actual file generated from sap.  If you see last three records which is in english language , there alignment is correct but this is not for first three records. hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0001000001.... Offre SpÃÂ©cial GSA..... .........2010010120101231 365GB04&lt;/P&gt;&lt;P&gt;0001000002.... Dette er test for danske sprog...... 2010040520100731 118GB01&lt;/P&gt;&lt;P&gt;0001000004.... Detta Ã¤r test fÃ¶r danska sprÃ¥k ....2010010120100630 181EU01&lt;/P&gt;&lt;P&gt;0001000041.... Jest to test na jÄzyk duÅ&lt;/P&gt;&lt;P&gt;ski 2010051520100930 139EU01&lt;/P&gt;&lt;P&gt;0001000121.... TESTING IS MO........................ 2009102020101020 366BE01&lt;/P&gt;&lt;P&gt;0001000122 ....TESTING IS ..............................2009102020101020 366EU01&lt;/P&gt;&lt;P&gt;0001000229 ....B&amp;amp;Q PROMO Q2 10..................2010032020100630 103GB01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given below SQL loader file to load into Oracle &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS (ERRORS=9999,ROWS=100)&lt;/P&gt;&lt;P&gt;LOAD DATA&lt;/P&gt;&lt;P&gt;CHARACTERSET UTF8&lt;/P&gt;&lt;P&gt;TRUNCATE&lt;/P&gt;&lt;P&gt;INTO TABLE TEMP_PROMOHDR&lt;/P&gt;&lt;P&gt;TRAILING NULLCOLS&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;PROMONAME       position(1:18)  char "UPPER(:PROMONAME)",&lt;/P&gt;&lt;P&gt;DESCRIPTION     position(19:58) char,&lt;/P&gt;&lt;P&gt;STARTDATE       position(59:66) DATE "YYYYMMDD",&lt;/P&gt;&lt;P&gt;ENDDATE         position(67:74) DATE "YYYYMMDD",&lt;/P&gt;&lt;P&gt;DURATION        position(75:79) CHAR,&lt;/P&gt;&lt;P&gt;BD_SALESORG     position(80:83) CHAR&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also want to know what will be correct OPEN DATASET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 09:49:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-20T09:49:22Z</dc:date>
    <item>
      <title>OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807179#M1468414</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;We have extract file generated from SAP which have description as one of the column. This description can be in any language. For this I have used different dataset statements. But nothing is working for all languages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET wm_datasetname FOR OUTPUT IN TEXT MODE ENCODING utf-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample extract file ( First four records are in different languages. If I use above statement then it file generates but its alignment get disturbed. Could you please suggest what could correct OPEN DATASET statement.  )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0001000001        Offre SpÃÂ©cial GSA                         2010010120101231  365GB04&lt;/P&gt;&lt;P&gt;0001000002        Dette er test for danske sprog          2010040520100731  118GB01&lt;/P&gt;&lt;P&gt;0001000004        Detta Ã¤r test fÃ¶r danska sprÃ¥k          2010010120100630  181EU01&lt;/P&gt;&lt;P&gt;0001000041        Jest to test na jÄzyk duÅ&lt;/P&gt;&lt;P&gt;                                           ski            2010051520100930  139EU01&lt;/P&gt;&lt;P&gt;0001000121        TESTING IS MO                                 2009102020101020  366BE01&lt;/P&gt;&lt;P&gt;0001000122        TESTING IS                                       2009102020101020  366EU01&lt;/P&gt;&lt;P&gt;0001000229        B&amp;amp;Q PROMO Q2 10                          2010032020100630  103GB01&lt;/P&gt;&lt;P&gt;0001000248        633943177501461162TEST             2009111920101120  367GB01&lt;/P&gt;&lt;P&gt;0001000249        633943179519594618TEST             2009111920101120  367GB01&lt;/P&gt;&lt;P&gt;0001000250        updated description                          2009111920101120  367GB01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 16:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807179#M1468414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T16:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807180#M1468415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want upload the file into application server as is?or u want to convert the language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give some more info on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 16:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807180#M1468415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807181#M1468416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The extract file is generated from SAP system and sending it to Oracle system to upload. The file need to uploaded in oracle system as it is. But due different language, alignment get disturbed and file format is not same for all reocrds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to know which is correct OPEN DATASET statement for all languages and how to maintain alignment also for all records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 16:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807181#M1468416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807182#M1468417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using this code to work around the special chars:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: gv_in TYPE string,
      gv_out TYPE string.
gv_in = 'Rössing Uranium Limited" &amp;amp; "Prüflos für Prüfung freigeben'.
 
CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
  EXPORTING
    intext  = gv_in
  IMPORTING
    outtext = gv_out.
WRITE gv_out.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;Input: Rössing Uranium Limited" &amp;amp; "Prüflos für Prüfung freigeben'&lt;/P&gt;&lt;P&gt;Output: Roessing Uranium Limited" &amp;amp; "Prueflos fuer Pruefung freigeben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 19:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807182#M1468417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T19:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807183#M1468418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First four records are in different languages. If I use above statement then it file generates but its alignment get disturbed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Looking at your sample output I'm not completely sure what your output file is supposed to look like. The odd characters appearing in your pasted sample output indicate to me that you possibly opened the file in a non-Unicode aware application, which simply used a different character set (e.g. your system code page) for interpreting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention the &amp;lt;em&amp;gt;alignment gets disturbed&amp;lt;/em&amp;gt;, are you creating a fixed length file or a separated file (e.g. like tab delimited)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extract file is generated from SAP system and sending it to Oracle system to upload. The file need to uploaded in oracle system as it is. But due different language, alignment get disturbed and file format is not same for all reocrds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ok, so maybe you should post some further details. Are you loading the extract into Oracle using SQL*Loader? If so, do you specify the CHARSET? How do you determine that the data is actually incorrect? I.e. maybe the question seems stupid, but depending on your client's character set the displayed data might look incorrect even though it's stored correctly on the database (check out [Oracle's NLS_LANG FAQ|http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang faq.htm] especially also the section on Unicode clients).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 20:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807183#M1468418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T20:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807184#M1468419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  It is fixed length format. Here i can not paste correctly hence included .(dots) below. Actually that dots are spacesin actual file generated from sap.  If you see last three records which is in english language , there alignment is correct but this is not for first three records. hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0001000001.... Offre SpÃÂ©cial GSA..... .........2010010120101231 365GB04&lt;/P&gt;&lt;P&gt;0001000002.... Dette er test for danske sprog...... 2010040520100731 118GB01&lt;/P&gt;&lt;P&gt;0001000004.... Detta Ã¤r test fÃ¶r danska sprÃ¥k ....2010010120100630 181EU01&lt;/P&gt;&lt;P&gt;0001000041.... Jest to test na jÄzyk duÅ&lt;/P&gt;&lt;P&gt;ski 2010051520100930 139EU01&lt;/P&gt;&lt;P&gt;0001000121.... TESTING IS MO........................ 2009102020101020 366BE01&lt;/P&gt;&lt;P&gt;0001000122 ....TESTING IS ..............................2009102020101020 366EU01&lt;/P&gt;&lt;P&gt;0001000229 ....B&amp;amp;Q PROMO Q2 10..................2010032020100630 103GB01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given below SQL loader file to load into Oracle &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS (ERRORS=9999,ROWS=100)&lt;/P&gt;&lt;P&gt;LOAD DATA&lt;/P&gt;&lt;P&gt;CHARACTERSET UTF8&lt;/P&gt;&lt;P&gt;TRUNCATE&lt;/P&gt;&lt;P&gt;INTO TABLE TEMP_PROMOHDR&lt;/P&gt;&lt;P&gt;TRAILING NULLCOLS&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;PROMONAME       position(1:18)  char "UPPER(:PROMONAME)",&lt;/P&gt;&lt;P&gt;DESCRIPTION     position(19:58) char,&lt;/P&gt;&lt;P&gt;STARTDATE       position(59:66) DATE "YYYYMMDD",&lt;/P&gt;&lt;P&gt;ENDDATE         position(67:74) DATE "YYYYMMDD",&lt;/P&gt;&lt;P&gt;DURATION        position(75:79) CHAR,&lt;/P&gt;&lt;P&gt;BD_SALESORG     position(80:83) CHAR&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also want to know what will be correct OPEN DATASET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 09:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807184#M1468419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T09:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807185#M1468420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don't understand the issue. With UTF-8 encoding you have to accept that some characters need more than one byte. This is a feature of the encoding, not a bug. If you don't like that you could possibly switch to UTF-16 encoding, but even there some characters are using more than two bytes. The only Unicode encoding with a fixed byte length is UTF-32 (which has 4 bytes per character, so quite some space requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's ok, that your output file has varying &lt;EM&gt;byte length&lt;/EM&gt; per record. Your records are still correct fixed records with respect to &lt;EM&gt;character length&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you load the data into Oracle you have to ensure to utilize [character length semantics|http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm#1008428] and then everything should be fine (and you have specified the CHAR addition).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 10:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807185#M1468420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T10:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807186#M1468421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean by character length sementics?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 10:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807186#M1468421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET STATEMENT- for different languages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807187#M1468422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean by character length sementics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Well, the SQL loader treats by default any lengths as byte length, not character length unless you're using CHARACTERSET UTF16. However, the small print that I missed initially is that POSITION specifications are &lt;EM&gt;always&lt;/EM&gt; treated as byte positions. With a variable length encoding such as UTF8 (where a character is not equivalent to a fixed byte count, but can instead have a length between 1 and 3 bytes) therefore the POSITION parameter in your control file is useless. For example if your first character in the file is using up 3 bytes and your first field is supposed to be &lt;EM&gt;position(1:2)&lt;/EM&gt; then you'd have already exceeded the first field (and what you really meant to say was that you have &lt;EM&gt;2 characters&lt;/EM&gt; in the first field, but Oracle doesn't allow you to do that using POSITION).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try what happens with the following control file:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
OPTIONS (ERRORS=9999,ROWS=100)
LOAD DATA
CHARACTERSET UTF8 LENGTH SEMANTICS CHAR
TRUNCATE
INTO TABLE TEMP_PROMOHDR
TRAILING NULLCOLS
(
PROMONAME CHAR(18) "UPPER(:PROMONAME)",
DESCRIPTION CHAR(40),
STARTDATE DATE "YYYYMMDD",
ENDDATE DATE "YYYYMMDD",
DURATION CHAR(5),
BD_SALESORG CHAR(4)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Don't have an Oracle instance to test this, but I think it might work. For the DATE fields I don't think a length specification is required, because this should be derived from the mask (otherwise try &amp;lt;em&amp;gt;DATE(8)&amp;lt;/em&amp;gt; instead).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 10:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-statement-for-different-languages/m-p/6807187#M1468422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T10:30:05Z</dc:date>
    </item>
  </channel>
</rss>

