Skip to Content
0
Former Member
Sep 19, 2008 at 09:08 PM

open dataset twice once for input and once for output in unicode system

115 Views

Hi All,

In a program

I used a open dataset to read the data from the file.

OPEN DATASET cmp_file FOR INPUT IN TEXT MODE

ENCODING NON-UNICODE.

Then i closed the file.

Again later in the program,

I used a open dataset to transfer the data.

OPEN DATASET cmp_file FOR OUTPUT IN TEXT MODE

ENCODING NON-UNICODE.

But this time I get sy-subrc = 8.

Unable to open the file and subsequent TRANSFER is leading to the runtime error.

Note : I am using a unicode system

I could run the same program well in non-unicode system..

->

Is it that if a file contains data already

1.I need to delete the data and open it

or

2.I need to open in APPENDING mode manadatorily...

in case of UNICODE system..

Kindly suggest..