Informix Error -2976
-2976 The end of the form has been reached prematurely.
This form specification has a SCREEN section but no TABLES or ATTRIBUTES sections. Complete the form specification.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2976 fires when a form specification has a SCREEN section but no TABLES or ATTRIBUTES
section — per the official guidance, the compiler reaches end-of-file before finding these
required sections.
- A
SCREENsection with no followingTABLES/ATTRIBUTESsections, per the official guidance — the direct, only cause.
Solutions / Resolution
- Complete the form specification, per the official guidance, by adding the missing
TABLESandATTRIBUTESsections.
Examples
An incomplete form specification
SCREEN
{
Order #: [ordnum]
}
END
-- -2976: no TABLES or ATTRIBUTES section follows
Corrected
SCREEN
{
Order #: [ordnum]
}
END
TABLES
orders
ATTRIBUTES
ordnum = order_id;
Diagnostic Checks
- Check that the form specification includes
TABLESandATTRIBUTESsections afterSCREEN, and add whichever is missing.
Related Errors / Related Topics
- -2880 — "The word 'screen' or 'end' has been left out." A related form-structure error,
about a missing
SCREEN/ENDkeyword rather than missingTABLES/ATTRIBUTESsections.
The form specification ends after SCREEN with no TABLES/ATTRIBUTES section — complete
the specification.