Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open dataset -Unicode error

Former Member
0 Likes
824

Hello SAP Experts,

We face a problem with OPEN DATASET on unicode systems which results the output of file has given below.

We tried all options of LINEFEED but the result was not successful. The carriage return is not at all achieved.

Earlier the program was working fine on a non-unicode systems.

Kindly advice.

Thanks !

Development Team

3 REPLIES 3
Read only

Former Member
0 Likes
721

Hi,

This might be due to the encoding of the file.

Please check how the file is written in the SAP application server. if any 3rd party system is involved, please check what is the encoding format of the file. Then use the same encoding format in our OPEN DATASET statement

Cheers

~Niranjan

Read only

0 Likes
721

Have you tried using the "ENCODING DEFAULT" addition to the open dataset statement?

OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

-Puneet

Read only

Clemenss
Active Contributor
0 Likes
721

Hi tamil,

in case linebreaks are missing you can still use READ DATASET addition MAXIMUM LENGTH mlen

if you know the length of the records of a fixed-length-record file.

Regards,

Clemens