Skip to Content
0
Former Member
Apr 07, 2011 at 01:22 AM

ASCII/UTF-8 with open dataset

532 Views

Hi Folks,

I have one program which writes a file in file share. But sometimes this files creating as ASCII and sometimes UTF-8, even though the code pointing to normal ASCII file.

So is there any way to differentiate the file format with OPEN DATA SET statement? And do you have any thoughts on this like when it will create ASCII/UTF-8?

OPEN DATASET GV_FILENAME FOR APPENDING
          IN LEGACY TEXT MODE CODE PAGE GV_CODEPAGE MESSAGE GV_MSG
          REPLACEMENT CHARACTER GV_REPLCHAR
          IGNORING CONVERSION ERRORS
          FILTER GV_FILTER.

If you have any thoughts please share with me.

Regards,

Raghu.