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

Code page conversion problem

Former Member
0 Likes
891

I am reading the file from application server using open dataset But when it comes to particular line it is gives me short dump.The short dump info says Not able to convert code page '4110' to '4102'

Wht is possible remedy for the issue.

Edited by: anil raina on Jul 30, 2008 5:59 AM

4 REPLIES 4
Read only

Former Member
0 Likes
572

Hi Anil,

When you are using OPEN Dataset , trying to write the content all the content should be character format.

if the there is any data like quantity and currency try to convert them into char format or else you will get the dump.

use character format only.

Read only

0 Likes
572

But i am reading data from the application server and how can i convert data in that case.I

think if we were writing the data then we can take care of that thing...............only

Read only

0 Likes
572

Remove the unicode flag in the program attributes and try again. This might help.

Else read as 'open dataset p_file for output in text mode encoding default / UTF-8'.

Thanks,

Mahesh

Read only

Former Member
0 Likes
572

Anil,

We were also getting a similar dump while using statement

"OPEN DATASET P_FILE FOR INPUT IN LEGACY TEXT MODE CODE PAGE '4110'.

But when replaced with "OPEN DATASET P_FILE FOR INPUT IN TEXT MODE ENCODING NON-UNICODE",

it worked fine.

Regards,

Kiran