Use the -checkwidth startup parameter
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
OpenEdge ABL programmers can override Data Dictionary column
definitions in ABL programs. Therefore, a SQL application cannot
read a record if a column contains data greater than the SQLWidth value
defined in the Data Dictionary. An attempt to retrieve a column that
exceeds the SQLWidth definition generates an error message,
and the attempt to access the record fails.
Use the -checkwidth startup parameterto
specify whether ABL compares CHARACTER, DECIMAL,
and RAW field data against the metaschema _width field
value before updating a database record. The _width field
value specifies the maximum width of the data allowed in a field.
The syntax for the -checkwidth startup parameter is:
Syntax
|
The -checkwidth startup parameter can be employed
in the following modes:
-
0 — Ignore the
_widthfield value and store the data. This is the default mode. -
1 — Store the data and generate a warning message if
the data exceeds the size specified in the
_widthfield. -
2 — Do not store data that exceeds the size specified
in the
_widthfield and generate an error. Specify this mode if you want the ABL to behave like SQL.
For more information on the -checkwidth
startup parameter, see Startup Command and Parameter Reference.