Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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..

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question