‎2014 Apr 09 5:22 PM
Hi All,
I am trying to create a unicode text file using OPEN DATASET which is to be fed to MDM for further process. I tried using the follow statement but no use,
OPEN DATASET p_afile FOR OUTPUT IN LEGACY TEXT MODE
CODE PAGE '1100' IGNORING CONVERSION ERRORS.
After generating a file I try to save it manually using excel and it gets converted without any issues. But the requirement is to generate a unicode txt file as like below in excel,
Any leads?
‎2014 Apr 09 5:24 PM
I even tried the usual way as below but not able to get the file,
OPEN DATASET p_afile FOR APPENDING IN TEXT MODE
ENCODING UTF-8.
‎2014 Apr 10 9:27 AM
That option is most likely UCS-2 LE.
So try open dataset for output in legacy text mode little endian code page '4103' ignoring conversion errors.
In SAP, 4103 is utf16-le.