We are upgarde our product from SA10 to SA12 12.0.1 (Linux - EBF 3311; Windows EBF 3324). We found out that UNLOAD statement add to first line of file - 3(three) hex character - xEF, xBB, xBF. Example

UNLOAD SELECT * FROM DEVICE TO 'c:\default_db\temp\cfg_dev_4.txt'

first line

1,1,0,'AS-DEF','allot.com','AS_DEF','Application Server/Collectors'

instead of

1,1,0,'AS-DEF','allot.com','AS_DEF','Application Server/Collectors'

It doesn't make problem if you want to use this file with LOAD statement, but in our case we make additional processing with our application and it make problem, with SA10 it had working properly. This problem appears in OS Windows and Linux.

asked 09 Oct '11, 13:57

HBrener's gravatar image

HBrener
426232535
accept rate: 0%

edited 10 Oct '11, 03:15

Volker%20Barth's gravatar image

Volker Barth
40.0k361549819


See http://dcx.sybase.com/index.html#1201/en/dbreference/unload-statement.html*d5e63698

"BYTE ORDER MARK clause Use this clause to specify whether a byte order mark (BOM) should be written. By default, this option is ON, provided the destination for the unload is a local or client file. When the BYTE ORDER MARK option is ON and the ENCODING is UTF-8 or UTF-16, then a BOM is written. If BYTE ORDER MARK is OFF, a BOM is not unloaded. "

Note that although byte ordering in UTF8 is a meaningless concept, many text editors & text processing systems allow a UTF8 encoded BOM character at the beginning of the text so that the encoding of the data can easily be detected as UTF8.

permanent link

answered 09 Oct '11, 16:03

John%20Smirnios's gravatar image

John Smirnios
11.9k396164
accept rate: 38%

edited 09 Oct '11, 16:48

Mark%20Culp's gravatar image

Mark Culp
24.9k10139297

Thanks, it help to us fix problem

(10 Oct '11, 13:53) HBrener
Replies hidden
1

If so, it's good practise to accept this answer.

Here's how to do so:)

(10 Oct '11, 16:14) Volker Barth
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×438
×48
×13

question asked: 09 Oct '11, 13:57

question was seen: 2,574 times

last updated: 10 Oct '11, 16:15