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

Problem with OPEN DATASET enconding

Former Member
0 Likes
440

Hello all,

I'm creating a file with specific length (max 370) with data from table MAKT. I'm using the instruction below.

OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE

ENCODING UTF-8

WITH UNIX LINEFEED

MESSAGE g_msg IGNORING CONVERSION ERRORS.

But for chinese language I have the following problem.

Original value: On Hing Paper # ## ##

Value in file: On Hing Paper 软 软éu20ACu0161 软éu20ACu0161

This new value pushes the next field to the right, causing the file is over 370 positions.

How can I convert this without over the max length of the file?

Thanks and regards.

Hello all,

I'm creating a file with specific length (max 370) with data from table MAKT. I'm using the instruction below.

OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE

ENCODING UTF-8

WITH UNIX LINEFEED

MESSAGE g_msg IGNORING CONVERSION ERRORS.

But for chinese language I have the following problem.

Original value: On Hing Paper # ## ##

Value in file: On Hing Paper 软 软éu20ACu0161 软éu20ACu0161

This new value pushes the next field to the right, causing the file is over 370 positions.

How can I convert this without over the max length of the file?

Thanks and regards.

1 REPLY 1
Read only

Former Member
0 Likes
403

Hello all,

When a extract a small quantity of record (300) entries, the records in the file looks good.

01MAKT 000064RZDE 220001000010275 EOn Hing Paper 软 软通 软

But when extract all data from table (26000 records) the problem occurs.

01MAKT 000063RZDE 220001000010275 EOn Hing Paper 软 软éu20ACu0161 软éu20ACu0161

Is there any way to solve this?

Thanks and regards