100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Programming

Level Numbers and Group Items

How COBOL uses level numbers from 01 to 49, plus the special 66, 77, and 88 levels, to build hierarchical record structures out of group and elementary items.

Data & VariablesIntermediate9 min readJul 10, 2026
Analogies

Understanding Level Numbers

Level numbers are two-digit numbers, typically written 01 through 49, that appear before every data name in DATA DIVISION and express hierarchy rather than indentation alone. A 01-level entry always starts a new record or standalone item; any level number greater than the previous one and less than 50 declares a field subordinate to the nearest preceding lower-numbered item, regardless of exactly how much they differ, so jumping from 01 to 05 to 10 is just as valid as 01 to 02 to 03. Indentation in source code is purely a human readability convention, since the compiler only reads the numeric value itself to determine nesting, which is why COBOL style guides still insist on consistent indentation to keep large record layouts comprehensible.

🏏

Cricket analogy: Level numbers are like a squad's numbered batting order, where the exact gaps between numbers 1, 4, and 7 don't matter mechanically, only that each successive number bats after the one before it in the same innings.

Group Items vs Elementary Items

An elementary item is a data name that carries a PICTURE clause and directly holds data, such as 05 EMP-SALARY PIC 9(7)V99. A group item, by contrast, has no PICTURE clause of its own; it is simply the sum of its subordinate elementary items and is treated as one large alphanumeric field whose size equals the total bytes of everything nested beneath it. This means MOVEing a group item moves the entire concatenated block of bytes at once, ignoring the individual field types of its subordinates, which is a powerful shortcut for copying a whole record but also a common source of bugs when a programmer forgets that a group MOVE is always alphanumeric, not numeric, even if every field inside happens to be numeric.

🏏

Cricket analogy: A group item is like an entire innings summary block on a scorecard, a single unit combining runs, wickets, and overs, that gets photocopied as one image even though each number inside means something different.

Special Level Numbers: 66, 77, and 88

Three level numbers break the normal 01-49 hierarchy rules. Level 77 declares a standalone elementary item with no subordinates and no relation to any group, historically used for simple scratch variables, though modern style tends to prefer 01-level items instead. Level 66 introduces a RENAMES clause, letting a programmer create an alternate grouping over an existing set of consecutively defined fields without duplicating storage, for example 66 WS-FULL-NAME RENAMES WS-FIRST-NAME THRU WS-LAST-NAME. Level 88 declares a condition name tied to one or more specific values of its parent item, occupying zero bytes of its own storage, and is what powers readable conditional logic like IF WS-STATUS-APPROVED instead of IF WS-STATUS = 'A', which is by far the most commonly used of the three special levels in modern COBOL code.

🏏

Cricket analogy: An 88-level condition name is like a stadium announcer saying Century instead of reading out the raw number 100 from the scoreboard, giving a meaningful label to a specific value.

cobol
       01  WS-CUSTOMER-RECORD.
           05  WS-FIRST-NAME       PIC X(15).
           05  WS-LAST-NAME        PIC X(20).
           05  WS-ACCOUNT-STATUS   PIC X.
               88  WS-STATUS-ACTIVE     VALUE 'A'.
               88  WS-STATUS-CLOSED     VALUE 'C'.
               88  WS-STATUS-SUSPENDED  VALUE 'S'.
           05  WS-BALANCE          PIC S9(7)V99.

       66  WS-FULL-NAME RENAMES WS-FIRST-NAME THRU WS-LAST-NAME.

       77  WS-SCRATCH-COUNT       PIC 9(3) VALUE ZERO.

       PROCEDURE DIVISION.
           IF WS-STATUS-ACTIVE
               DISPLAY 'CUSTOMER: ' WS-FULL-NAME
               DISPLAY 'BALANCE: ' WS-BALANCE
           END-IF.

Qualification and Reference Modification

Because two different 01-level records can legally reuse the same subordinate field name, COBOL provides qualification with OF or IN to disambiguate, so WS-STATUS OF WS-CUSTOMER-RECORD refers unambiguously to a specific field even if WS-STATUS also exists inside WS-ORDER-RECORD elsewhere in the same DATA DIVISION. Separately, reference modification lets a programmer extract a substring of any elementary item without declaring a new field, using the syntax identifier(start-position:length), so WS-FULL-NAME(1:5) grabs the first five characters of that group item regardless of its PICTURE clause. Reference modification is especially useful for parsing fixed-format legacy records where a single 20-byte field actually packs three logically distinct sub-values that were never broken out with their own level numbers.

🏏

Cricket analogy: Qualification with OF is like distinguishing Kohli of India from a different Kohli playing club cricket for Delhi, using the team name to remove any ambiguity about which player is meant.

The COBOL 2014 standard raised the traditional 49-level subordinate limit's practical depth concerns somewhat, but 01 through 49 remains the working range for hierarchical nesting in virtually all production code; levels above 49 are never used for ordinary group and elementary items.

MOVEing one group item to another only works safely when both groups have byte-for-byte identical internal layouts. If the subordinate PICTURE clauses differ even slightly, a group MOVE silently misaligns the data since COBOL treats the entire operation as alphanumeric, performing no field-by-field conversion.

  • Level numbers 01-49 express hierarchy by relative value, not by consecutive numbering or indentation alone.
  • An elementary item carries a PICTURE clause and holds data directly; a group item has no PICTURE and is the concatenation of its subordinates.
  • MOVEing a group item transfers the entire byte block at once, treated as alphanumeric regardless of the subordinates' actual types.
  • Level 77 declares a standalone elementary item with no subordinates or group relationship.
  • Level 66 introduces a RENAMES clause to create an alternate grouping over existing consecutive fields.
  • Level 88 declares a zero-storage condition name tied to specific values, enabling readable conditional logic.
  • Qualification with OF/IN and reference modification with (start:length) resolve ambiguous names and extract substrings.

Practice what you learned

Was this page helpful?

Topics covered

#Programming#COBOLStudyNotes#LevelNumbersAndGroupItems#Level#Numbers#Group#Items#StudyNotes#SkillVeris#ExamPrep

Frequently Asked Questions

21 categories · pick one to explore

Where can I get free study notes for programming and tech subjects?
SkillVeris offers completely free study notes covering programming and tech subjects, with no signup fees or paywalls. The notes are structured by course and topic, written for quick understanding, and enriched with the Learn Through Hobbies analogy method, so you can revise concepts through cricket, music, gaming, cooking and more.
Are SkillVeris study notes good for exam revision?
Yes, the study notes are designed for efficient revision: each topic answers its heading immediately, keeps explanations concise, and links to related glossary terms and cheat sheets. Students preparing for university exams or certification tests use them as quick revision notes because they distil concepts without the padding of full textbooks.
What subjects do the free study notes cover?
The study notes span the platform's main domains, including AI and machine learning, Python and programming, web development, DevOps, cloud, security and databases. Coverage mirrors the 37 live courses, so notes exist for the topics you are actually studying, and new note sets are added as courses launch.
How are SkillVeris study notes different from regular textbooks?
The notes are answer-first, concise and free, whereas textbooks are long and often expensive. Each section explains one concept directly, then reinforces it through selectable hobby analogies like cricket or cooking. Notes also cross-link to the glossary, blog and cheat sheets, letting you jump to related material instantly instead of flipping pages.
Can I use the developer study material without creating an account?
The study notes are free to access, and SkillVeris does not charge anything for its developer study material at any point. Browsing notes is straightforward from the Study Notes section, and if you want progress tracking, certificates and AI Mentor conversations tied to your learning, a free account unlocks those extras.
Do the study notes explain concepts with analogies?
Yes, this is a signature SkillVeris feature. Study notes use the Learn Through Hobbies method, explaining technical concepts through analogies from twelve domains including cricket, music, gaming, photography, travel, movies, fitness, chess, cooking, finance, business and sports. You can switch the analogy domain instantly to whichever hobby makes the concept click.
Are the revision notes suitable for last-minute exam preparation?
Yes, revision notes on SkillVeris work well for last-minute preparation because every section states the answer in its first sentences, so skimming is genuinely effective. Pair them with the relevant cheat sheet for formulas and syntax, and use the glossary for any unfamiliar term you meet while cramming.
Is there free study material for AI and machine learning?
Yes, SkillVeris provides free study notes across its AI and ML catalogue, covering Python for AI, deep learning frameworks like PyTorch and TensorFlow, Hugging Face Transformers, Large Language Models, RAG, AI agents and MLOps. All of it is free, making it a strong resource for Indian students and global learners alike.
Can beginners understand the study notes, or are they for experts?
Beginners can absolutely use them. The notes are written in plain language, define terms as they appear, and lean on hobby analogies to make abstract ideas concrete. Difficulty scales with the underlying course level, so beginner-course notes stay gentle while advanced-course notes go deeper, and the glossary supports you throughout.
How do study notes connect with SkillVeris courses?
Study notes are organised by course and topic, so they map directly to the structured courses and their 24–40-lesson curriculum. Many learners study a lesson first, then use the matching notes for revision before module assessments and the final exam, where 80 percent is required to pass and earn the certificate.
Are there study notes for Python specifically?
Yes, Python is well covered through notes tied to the Python-focused courses, including Python for AI and ML. Topics span fundamentals through applied machine learning usage. You can reinforce the notes with Python practice in Code Lab, which runs code in your browser with no installation required.
Do the study notes include code examples?
Yes, study notes include code examples wherever a concept is best shown in code, alongside explanations, key points and analogies. Reading a snippet in the notes and then reproducing it yourself in Code Lab is an effective loop, since Code Lab lets you run code in the browser across six languages.
How often is new study material added to SkillVeris?
Study material grows alongside the course catalogue. Whenever new courses join the platform's 37 live courses, matching study notes, glossary entries and cheat sheets are added so the resources stay in sync. Existing notes are also refined over time, so it is worth revisiting topics you studied earlier.
Can I use SkillVeris notes to prepare for technical interviews?
Yes, the notes make excellent interview revision because they compress each concept into direct, answer-first explanations, which mirrors how you should answer interview questions. Combine them with the SkillVeris interview questions feature, which includes readiness scoring, to test whether your revision has actually made you interview-ready.
Are the study notes mobile-friendly for studying on the go?
Yes, the study notes are built to load fast and read comfortably on mobile devices, so you can revise during a commute or between classes. Sections are short and answer-first, which suits small screens, and analogy switching works on mobile too, letting you study anywhere without carrying books.
What is the difference between study notes and cheat sheets?
Study notes explain concepts in depth with context, examples and analogies, making them ideal for learning and revision. Cheat sheets are compact quick-reference summaries of syntax, commands and key facts, ideal once you already understand a topic. Most learners study the notes first, then keep the cheat sheet handy while coding.
Do study notes help if I am stuck on a course lesson?
Yes, reading the matching study notes often clarifies a lesson because the same concept is explained from a different angle, frequently with a different analogy. If you are still stuck, ask the AI Mentor, which answers 24/7 at Quick, Detailed or Deep-dive depth until the idea genuinely makes sense.
Is there free study material for DevOps and cloud topics?
Yes, SkillVeris carries free study notes for DevOps and cloud topics as part of its coverage across 37 live courses. The material suits learners following the DevOps Engineer or Cloud Engineer paths, and it links to related glossary terms and cheat sheets so you can revise the whole toolchain in one place.
Can school or college students in India use these notes for projects?
Yes, students across India and worldwide use SkillVeris notes for coursework, projects and exam preparation, and everything is free, which matters for student budgets. The notes explain concepts clearly enough to cite in project reports, and Code Lab lets you prototype the project code directly in your browser.
How should I combine study notes with other SkillVeris resources?
A proven loop: learn from a course lesson, revise with the matching study notes, look up unfamiliar terms in the glossary, keep the cheat sheet open while practising in Code Lab, and quiz yourself with interview questions. The AI Mentor fills any remaining gaps 24/7, at whatever depth you need.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse