Informix Error -1139: Form line cannot be set using LAST keyword.
Cause and resolution
Form line cannot be set using LAST keyword.
This OPTIONS statement includes a FORM LINE clause that uses LAST. You can specify an absolute form line or one relative to FIRST, but you cannot specify it relative to LAST.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1139 fires when an OPTIONS statement's FORM LINE clause uses the LAST keyword — per the
official guidance, FORM LINE accepts an absolute line number or one relative to FIRST, but
not one relative to LAST.
FORM LINEspecified relative toLAST, per the official guidance — the direct, only cause; this relative form isn't supported for this clause.
Solutions / Resolution
- Specify an absolute form line, or one relative to
FIRST, per the official guidance, instead ofLAST.
Examples
Using LAST, which isn't supported
OPTIONS FORM LINE LAST - 2
-- -1139: FORM LINE cannot be specified relative to LAST
Corrected — relative to FIRST, or an absolute number
OPTIONS FORM LINE FIRST + 5
-- or:
OPTIONS FORM LINE 10
Diagnostic Checks
- Check every
OPTIONS ... FORM LINEclause for aLAST-relative reference, and replace it with an absolute line number or aFIRST-relative one.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1139 in this set yet.
FORM LINE only accepts an absolute value or a FIRST-relative one — replace any LAST-relative
reference.