IBM Support

When saving a dataset as SAS v9+ (*.sas7bdat), Error # 6452 is thrown and the resulting file doesn't contain all records.

Troubleshooting


Problem

When saving a new or existing dataset (*.sav) as SAS v9+ (*.sas7bdat), an error is thrown and the resulting SAS file doesn't contain all of the original records. StatTransfer message: The number of encoding errors exceeded the user-defined limit, execution will be stopped Error # 6452 An error occurred while the output file was being written. Execution of this command stops.

Cause

The Character Encoding is set to "Locale's writing system" instead of "Unicode (universal character set)".

Resolving The Problem

The locale needs to be changed to Unicode.

Go to Edit > Options > General tab

Under 'Character Encoding for Data and Syntax', select the radio button for "Unicode (universal character set)".

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"21.0;20.0;19.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 April 2020

UID

swg21622717