Easytrieve Continuation Lines

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.

Progress0 of 0 lessons

Why Continuation Exists

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.

Minus Continuation

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.

text
1
2
3
FIELD-NAME W 6 A - VALUE 'ABC - DEF'

Plus Continuation

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.

text
1
2
3
FIELD-NAME W 6 A + VALUE 'ABC + DEF'

Minus vs Plus Summary

Continuation character comparison
CharacterResume positionTypical use
Minus (-)Start of next statement area (column 1)Simple wraps, literal splits aligned left
Plus (+)First non-blank on next lineIndented continuation lines under a long statement

Continuing PARM and MASK Lines

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.

text
1
2
3
4
5
PARM LINK(PAYRPT) DEBUG(STATE,FLOW) + ABEXIT(NOSNAP) MASK (GROSS) (A BWZ '$$,$$9.99') + (DEPT) (A 3)

Comment Restrictions

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.

Statement Area and Column 72

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 vs Multiple Statements

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.

Debugging Continuation Errors

  1. Verify the continued-from line ends with - or + as last non-blank character.
  2. Remove comment lines embedded inside the continued block.
  3. Check parentheses and quotes balance across all continuation records.
  4. Confirm no accidental trailing spaces after the continuation character.
  5. Compare minus vs plus resume position if tokens split mid-word wrong.

Common Mistakes

  • Blank line inside a continued statement interpreted as break.
  • Forgetting continuation character so line 1 ends statement prematurely.
  • Splitting a quoted literal without planning quote closure on next line.
  • Using comma at line end expecting continuation—comma is not continuation.
  • Exceeding column 72 on a line assumed to wrap automatically.

Explain It Like I'm Five

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.

Exercises

  1. Split a long PARM DEBUG list across two lines with plus continuation.
  2. Continue a DEFINE VALUE literal across lines with minus.
  3. Explain why a comment line cannot sit between continuation records.
  4. Fix a statement truncated at column 72 without continuation character.
  5. Compare resume column behavior for minus versus plus on the same text.

Quiz

Test Your Knowledge

1. A minus (-) at end of line means:

  • Statement continues at start of next statement area
  • Comment follows
  • Delete statement
  • End program

2. Plus (+) continuation resumes at:

  • First non-blank character on next line
  • Column 72 only
  • SYSPRINT
  • END-PROC

3. Comments inside a continued statement are:

  • Not allowed
  • Required
  • Only in JCL
  • Only in REPORT

4. Last non-blank character normally ends a statement unless it is:

  • Minus or plus continuation character
  • Always period
  • Letter A
  • Digit 0

5. Continuation is needed when:

  • A statement exceeds practical width in columns 1-72
  • Every line
  • Only in FILE
  • Never in PARM
Published
Read time11 min
AuthorMainframeMaster
Reviewed by MainframeMaster teamVerified: Broadcom Easytrieve 11.6 continuation syntax with minus and plusSources: Broadcom Easytrieve Report Generator 11.6 TechDocs, Easytrieve Syntax RulesApplies to: Easytrieve multi-line statement continuation