DDL Messages
Data Definition Language (DDL) Reference Manual — 426798-002
A- 9
DDL Error and Warning Messages
*** ERROR *** COMP-3 data item must be of the form PIC [S]9(n)[V9(n)]
Last diagnostic on page 1
*** WARNING *** Errors detected - no output produced for EMP
!
Recovery. Correct the error and recompile.
Cause. The data type of the item identified as
element_name
is described with a
USAGE IS COMP-3, COMPUTATIONAL-3, or PACKED-DECIMAL clause but is not a
PACKED-DECIMAL item.
Effect. DDL rejects the object. For example:
!def emp1 pic 9(5).
Definition EMP1 size is 5 bytes.
Definition EMP1 added to dictionary.
!def emp2.
!02 fld2 type emp1 comp-3.
*** ERROR *** COMP-3 specified with reference item which is not COMP-3 - FLD2
!
Recovery. Correct the error and recompile.
Cause. The record definition of an entry-sequenced, relative, or unstructured file
contains a COMPRESS, DCOMPRESS, or ICOMPRESS clause. These clauses apply
only to key-sequenced files.
Effect. DDL rejects the object.
Recovery. Change the file structure to key sequenced, or remove the COMPRESS,
DCOMPRESS, or ICOMPRESS clause.
Cause. A CONSTANT statement has a value that is incompatible with its data type.
For example, the value is too large for the size indicated by the data type, or is
alphabetic when the data type is numeric, or is a signed value when the data type is
unsigned.
Effect. DDL rejects the constant.
Recovery. Change either the data type or the specified value of the constant.
***ERROR*** COMP-3 specified with reference item which is not
COMP-3 - element_name
***ERROR*** COMPRESS, DCOMPRESS, or ICOMPRESS on a non KEY-
SEQUENCED file
***ERROR*** CONSTANT data type is incompatible with
referenced value