Skip to content
COBOL

Level number

The two-digit number in front of a COBOL data item that shows how fields nest inside a record.

Also written 01 level, 88 level, group item

Level numbers give COBOL data its structure. Each declared item begins with a number, and the numbers express containment: a higher number nested under a lower one is part of it.

By convention 01 is the top of a record or a standalone item, and subordinate fields are numbered 05, 10, 15 and so on. The increments of five are pure convention, and a useful one, since they leave room to insert a level later without renumbering everything below.

An 01 item that contains other items is a group, and its own value is simply all its parts joined together. That means a whole record can be moved in one statement, or examined field by field, whichever is convenient.

Two special numbers stand apart. 77 declares an independent item with no structure, common in older code. 88 declares a condition name, a readable label for a particular value of the field above it, so a test can be written as a meaningful name rather than a comparison against a code. Condition names make business logic considerably easier to read.

Browse all 115 terms

Learn this properly.

Use Level number for real in Mainframe101, in your browser, with Zed beside you. Join the waitlist.

Early access and updates. No spam, unsubscribe any time.