Every Easytrieve program is a structured conversation between statements. PARM whispers compile and runtime options. FILE and DEFINE describe data shapes in Library. JOB opens the workday—INPUT file, READ loop, IF filters, PRINT to report. REPORT subactivity declares TITLE and LINE so output looks professional. STOP ends the shift. The Language Reference documents hundreds of statements with parameters beginners cannot absorb in one sitting. This reference page is the map: alphabetical index from ACCESS through WRITE, each entry linking to a dedicated tutorial with syntax, examples, quizzes, and mistake lists. Use it when you know the statement name from an error message or colleague's source but not what it does or where it belongs. Pair with statements overview for section-based mental model—Environment versus Library versus Activity—and with statements by category for functional grouping by I/O, control flow, and reporting.
Search alphabetically below when debugging compile errors like unknown statement or invalid context for FILE. Click the statement name when tutorial page exists; pages under construction appear in checklist order. Read section column before coding—FILE in middle of JOB body fails even when spelling correct. Cross-check terminator rules on statement-specific page and statement terminators tutorial. Vendor manual remains authority for obscure options; tutorials teach durable patterns and beginner traps.
| Family | Examples | Role |
|---|---|---|
| Definition | FILE, DEFINE, TABLE | Describe data in Library |
| I/O | OPEN, READ, GET, WRITE, CLOSE | Move records |
| Control flow | IF, DO, WHILE, GOTO, CASE | Branch and loop |
| Reporting | REPORT, TITLE, LINE, PRINT | Format output |
| Modular | PROC, PERFORM, CALL, RETURN | Reuse logic |
| Environment | PARM | Program-wide options |
Smallest useful payroll filter uses subset of full index. Environment PARM optional. Library FILE and DEFINE mandatory. Activity JOB INPUT, DO WHILE or READ loop, IF, PRINT, STOP. REPORT with TITLE and LINE at JOB end. Every other statement in index extends this skeleton—SORT before JOB, DISPLAY for debug, ADD for running totals, WRITE for extract file instead of report.
123456789101112PARM FILE PAYROLL FB(80 800) EMP-NO 1 6 N GROSS 20 5 P 2 JOB INPUT PAYROLL IF GROSS GT 0 PRINT PAY-RPT END-IF STOP * REPORT subactivity follows JOB in same activity
Procedural statements execute in sequence during runtime—READ, IF, ADD, PRINT. Declarative statements register structure compiler uses later—REPORT, LINE, FILE field layout. Mixing order violates grammar: REPORT definitions belong after JOB executable statements in same activity. BEGINners paste TITLE at top of program like HTML header—compile error. Index section column marks declarative report and library entries versus procedural activity verbs.
Each row summarizes purpose and home section. Tutorial links use slug under /tutorials/easytrieve/statements/. Pages marked pending in checklist will link as they publish—bookmark this reference for updates.
| Statement | Section | Purpose |
|---|---|---|
| ACCESS | Activity / file | Access indexed or relational data per grammar |
| ADD | Activity | Add numeric value to field or accumulator |
| AFTER-BREAK | Report events | Logic after control break processing |
| AFTER-LINE | Report events | Logic after each detail line prints |
| AFTER-SCREEN | Screen | Logic after screen display or input |
| BEFORE-BREAK | Report events | Logic before control break output |
| BEFORE-LINE | Report events | Logic before detail line prints |
| BEFORE-SCREEN | Screen | Logic before screen presentation |
| CALL | Activity | Invoke external program or routine |
| CASE | Activity | Multi-way branch on value |
| CLOSE | Activity | Close file after processing |
| DISPLAY | Activity | Write diagnostic line to SYSPRINT |
| DO | Activity | Start loop block with END-DO |
| ELSE | Activity | Alternative branch for IF |
| END | Various | Close block or activity per context keyword |
| END-IF | Activity | Close IF conditional block |
| FILE | Library | Declare file and record organization |
| GET | Activity | Read keyed or relative record |
| GOTO | Activity | Transfer control to label |
| IF | Activity | Conditional execution of statements |
| JOB | Activity | Start job activity with INPUT and logic |
| LABEL | Activity | Named target for GOTO or PERFORM |
| LINE | Report | Define detail column layout on report |
| LOOKUP | Activity | Table or file lookup processing |
| MACRO | Library / compile | Macro definition or invocation |
| MOVE | Activity | Move or assign field values |
| OPEN | Activity | Open file for I/O |
| PARSE | Activity | Parse delimited or structured text |
| Activity | Select record for report output | |
| PROC | Activity / report | Define procedure module END-PROC |
| READ | Activity | Read next sequential record |
| REPORT | Report | Start report subactivity definition |
| RETURN | Activity | Return from called routine |
| SCREEN | Screen | Define online screen layout |
| SELECT | Activity | Select records meeting criteria |
| SORT | Activity | Sort file by keys |
| START | Activity | Start browse or processing verb |
| STOP | Activity | Terminate program execution |
| TABLE | Library | Define in-memory table |
| TITLE | Report | Report page or section heading lines |
| TOTAL | Report | Report total processing |
| WHILE | Activity | Loop while condition true |
| WRITE | Activity | Write record to output file |
Statements are sentence types in Easytrieve language. Nouns like FILE say what data looks like. Verbs like READ and PRINT say what actions happen. Conjunctions like IF say when to do something. This reference is the dictionary listing every sentence type alphabetically so you can look up READ when you see it in someone else's program and learn what it does.
1. Easytrieve statements are grouped in source by:
2. FILE and DEFINE are:
3. IF and END-IF bracket:
4. REPORT TITLE LINE belong to:
5. This statements reference page differs from statements overview by: