Skip to Content
0
Former Member
May 12, 2008 at 04:57 PM

OPEN DATASET TEXT MODE and LEGACY TEXT MODE

301 Views

Hi ,

What is the difference between the two modes while opening the file?

TEXT MODE and

LEGACY TEXT MODE

open dataset DSN in legacy text mode for output

open dataset DSN in text mode for output encoding utf-8.

Can I use LEGACY TEXT MODE instead of TEXT MODE?

For LEGACY TEXT MODE Unicode programs do not check whether the data objects used for reading or writing are character-type and that can solve TRANSFER statement runtime error if there is non-unicode fields in data object , for example

TRANSFER f TO file .... and f has couple of Non-character fields

Please advice.

Regards,