Easytrieve source records are 80 characters wide with a default statement area in columns 1 through 72. Long PARM lists, MASK parameters, and TITLE literals do not always fit on one line. Continuation lines let one logical statement span multiple records without breaking grammar. The last non-blank character on a line normally ends the statement—unless that character is minus or plus, which tells the compiler to keep reading on the next line. This page explains both continuation styles, when they differ, and the restrictions that trip up beginners embedding comments mid-continuation.
Mainframe editors and punch-card heritage fixed source at 80 columns. Easytrieve does not use arbitrary-length lines like some PC editors. When a MASK or DEBUG parameter list grows long, splitting across lines preserves readability and keeps tokens inside the statement area. Continuation is syntactic sugar: the compiler rejoins lines into one statement before parsing keywords and operands.
When the last non-blank character on a line is minus, the statement continues at the start of the next statement area—column 1 by default. Text on the continuation line aligns under the left margin unless you intentionally indent for readability; indentation after column 1 is still part of the continued token stream when using minus from Broadcom examples splitting literals.
123FIELD-NAME W 6 A - VALUE 'ABC - DEF'
Plus as the last non-blank character continues the statement at the first non-blank character on the next line. This suits indented continuation where the second line is visually nested under the first. Broadcom documents that between-word continuation often produces identical results for minus and plus, but mid-word splits may require choosing the correct character so rejoined tokens spell the intended literal or identifier.
123FIELD-NAME W 6 A + VALUE 'ABC + DEF'
| Character | Resume position | Typical use |
|---|---|---|
| Minus (-) | Start of next statement area (column 1) | Simple wraps, literal splits aligned left |
| Plus (+) | First non-blank on next line | Indented continuation lines under a long statement |
Environment and Library statements benefit most from continuation. A PARM with multiple DEBUG subparameters or a MASK with edit pattern and field list may exceed 72 columns. Break at natural parameter boundaries—after a comma or between parenthesized groups—so continued lines remain human-readable and close parentheses on the correct record.
12345PARM LINK(PAYRPT) DEBUG(STATE,FLOW) + ABEXIT(NOSNAP) MASK (GROSS) (A BWZ '$$,$$9.99') + (DEPT) (A 3)
You may not insert comment lines—or inline comments—inside an unfinished continued statement. Comments must wait until the logical statement completes. If you need a note about a long MASK, place a full-line asterisk comment before or after the entire continued block, not between continuation records. Violating this rule produces compile errors that reference the continuation line number, not the comment line beginners expect.
Characters in the statement area columns 1-72 participate in continuation. Content beyond column 72 may be ignored or treated as sequence numbers depending on site options. Do not rely on spilling into columns 73-80 for executable text. If text truncates at 72 without a continuation character, the statement is incomplete and the compiler may flag unexpected end of statement errors.
Continuation joins lines into one statement. Period-space on a single line separates two complete statements without continuation. Do not mix models on one line incorrectly—a period ends a complete statement even if the prior line ended with plus intended to continue. Finish continued statements before starting a new statement with period-space on the final continuation record.
Continuation is when a sentence is too long for one line of notebook paper, so you draw a little dash at the end meaning the sentence keeps going on the next line. Minus means continue at the far left of the next line. Plus means continue where the words pick up after skipping spaces. You cannot stick a sticky note comment in the middle of the sentence until the whole sentence is finished.
1. A minus (-) at end of line means:
2. Plus (+) continuation resumes at:
3. Comments inside a continued statement are:
4. Last non-blank character normally ends a statement unless it is:
5. Continuation is needed when: