‎2012 Jul 10 11:10 AM
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
‎2012 Jul 10 12:06 PM
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
‎2012 Jul 10 9:55 PM
Have you tried using the "ENCODING DEFAULT" addition to the open dataset statement?
OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
-Puneet
‎2012 Jul 10 10:55 PM
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