Easytrieve DRAW Reserved Word

DRAW is one of the newly active reserved words when Easytrieve Report Generator moves to 11.x function mode. If your data dictionary or 1980s copybook used DRAW as a field name—for a drawing number, a graphics flag, or an abbreviation for a business code—your next compile may fail with unexpected keyword or symbol errors. DRAW is not the statement beginners use to paint screens: terminal maps are built with SCREEN, ROW, TITLE, KEY, and optional BORDER parameters. This page explains what DRAW means in the reserved-word catalog, why migration matters, safe renames, how screen borders and lines are actually defined, and how DRAW differs from GRAPH—another reserved word on the same migration list.

Progress0 of 0 lessons

Definition and Purpose in the Language

In Broadcom Symbols and Reserved Words, DRAW is marked reserved (R). It sits in the alphabetical keyword list between DO and DUPLICATE alongside statement vocabulary such as DISPLAY, DEFINE, and DELETE. The 11.6 Language Reference alphabetical statements summary does not publish a dedicated DRAW statement page comparable to EXECUTE or SCREEN. Practical purpose for maintainers today is migration safety: treat DRAW as off limits for identifiers and expect future or platform-specific syntax to use the token without conflicting with your field names.

Shops migrating from 6.4 should not assume DRAW is unused because their source never coded a DRAW verb. The collision is at the identifier level—DEFINE DRAW W 10 A is enough to fail.

Version Introduced

Broadcom knowledge article 55109 states that words previously classified as future reserved words became active in release 11.x, including DRAW. The New Reserved Words migration topic lists DRAW explicitly next to EXECUTE, GRAPH, SET, and SYSUSERID. Plan scans as part of function mode cutover, not as an optional cleanup.

DRAW reserved-word facts
ItemValue
Reserved statusYes—cannot be user field or label name
11.6 migration listListed under New Reserved Words
Documented DRAW statementNot in 11.6 statements index; see SCREEN/BORDER for layout
Related reserved wordGRAPH—also migration-listed

Can DRAW Be Used as a Variable Name?

No on modern function mode compile. Rename before migration. Typical legacy uses include engineering drawing numbers, plotter flags, or abbreviated status codes. Replacement patterns: WS-DRAWING-NO, FL-GRAPHIC-IND, DOC-DRAW-NUM, or enterprise dictionary codes that avoid the bare token DRAW. Update all copybooks in the same release—mixed modules cause link-edit success with wrong offsets if only some members rename.

How Screen Lines and Borders Actually Work

Beginners searching for draw screen may expect a DRAW command. Easytrieve instead declares a SCREEN activity, then positions literals and fields with ROW and COL. TITLE places header text. KEY assigns PF keys. BORDER on the SCREEN statement requests a screen border using SINGLE, DOUBLE, WIDE, or a border literal, with optional ATTR for color and intensity. SHADOW may add depth on supported terminals. This declarative model separates layout from procedure logic in BEFORE-SCREEN and AFTER-SCREEN.

text
1
2
3
4
5
6
7
8
DEFINE WS-REPLY W 1 A SCREEN NAME MAIN-MENU BORDER DOUBLE ROWCOUNT 24 LINESIZE 80 TITLE 'Employee File Main Menu' ROW 6 COL 10 'Type an option, then press Enter.' ROW 8 COL 10 'Option ===>' WS-REPLY VALUE ('V' 'E' 'D' 'X') KEY F3 NAME 'Exit' EXIT KEY F12 NAME 'Cancel' EXIT IMMEDIATE

No DRAW keyword appears. Attribute changes during runtime may use the SET statement on supported releases—SET is separately reserved; see the SET reserved word page when published. Dynamic highlighting is not the same as reserving the DRAW identifier for your data.

DRAW Versus GRAPH

Both DRAW and GRAPH appear on the same 11.x activation list. Neither should be used as field names after migration. GRAPH may relate to graphical or extended reporting features on some platforms; DRAW may have been reserved for similar presentation-layer expansion. Until your site manual documents a statement, assume both are identifier collisions only and keep business data names prefixed.

Migration Scan Checklist

  1. Search source libraries for DEFINE DRAW and FILE definitions containing DRAW as a field token.
  2. Check SQL view and copybook imports for column aliases named DRAW.
  3. Review report masks and HEADING literals—literals in quotes are safe; field names are not.
  4. Recompile with function mode option in test before production bind.
  5. Log any site-specific DRAW statement usage discovered in local macros to your research log.

Compiler Error Patterns

Errors vary by context: DEFINE line may flag reserved word; references may parse as incomplete statements if the compiler expects a DRAW phrase in future grammar. Do not workaround with quotes around the field name—rename instead. If your vendor macro library injects DRAW, patch the macro or delay function mode until vendor ships 11.6-safe version.

Common DRAW Mistakes

  • Assuming DRAW is harmless because no DRAW statement was ever coded.
  • Looking for DRAW instead of BORDER when building menu frames.
  • Renaming only one copybook in a multi-module application.
  • Confusing DRAW with DISPLAY—DISPLAY prints lines; DRAW is not a display verb.
  • Using DRAW in a procedure label name.

Explain It Like I'm Five

DRAW is a word the Easytrieve robot saved for itself. You cannot name your crayon box DRAW anymore. If you want to put a frame around your computer menu, you ask for a BORDER when you build the SCREEN, and you put words on each ROW—like writing on ruled lines. The robot did not forget how to draw boxes; it just uses different command words than the short name DRAW on your old toy label.

Exercises

  1. Find three alternative field names to replace DEFINE DRAW W 8 A.
  2. Add BORDER DOUBLE to a minimal SCREEN menu skeleton.
  3. List five screen definition statements that replace a hypothetical DRAW command.
  4. Explain why quoted literal DRAW in a TITLE is safe but a field named DRAW is not.
  5. Add DRAW to a migration scan checklist for your shop.

Quiz

Test Your Knowledge

1. DRAW on the 11.6 New Reserved Words list means:

  • Programs cannot DEFINE a user field named DRAW
  • All screens must use a DRAW statement
  • DRAW replaces ROW
  • DRAW is only for JCL

2. To draw a screen border in Easytrieve you typically use:

  • BORDER on the SCREEN statement
  • DRAW PROC
  • EXECUTE DRAW
  • CONTROL DRAW

3. DRAW became active in release:

  • 11.x function mode
  • 6.4 only
  • Never
  • COBOL interop

4. Safe rename for legacy field DRAW:

  • WS-DRAW-FLAG or WS-GRAPHIC-MODE
  • DRAW
  • EXECUTE DRAW
  • SCREEN DRAW

5. DRAW appears in Symbols and Reserved Words as:

  • Alphabetic reserved keyword (R marker)
  • Optional comment
  • DD name
  • Sort key
Published
Read time12 min
AuthorMainframeMaster
Reviewed by MainframeMaster teamVerified: Broadcom Easytrieve 11.6 Symbols and Reserved Words, New Reserved Words, KB 55109Sources: Broadcom Easytrieve 11.6 New Reserved Words, Symbols and Reserved Words, SCREEN statement, KB article 55109Applies to: Easytrieve DRAW reserved word and migration