Cobol/Cobol

Advertisement


Question
Hi,

How many 01 levels can be used in a cobol program.This was my interview question.

Answer
There is no COBOL Standard defined limit.
Any limits are imposed by the implementers (IBM, Microfocus, FUJITSU,etc.) for a specific compiler version.
Limits are normally published as an appendix in the Language Reference Manual.
IBM just announced there latest Enterprise COBOL Version 5.1 and significantly removed many limits.  Below is the IBM COBOL Version 4.2 statement about 01/77 level limits:
Language element Compiler limit
Total 01 + 77 (data items) No limit

David

Cobol

All Answers


Answers by Expert:


Ask Experts

Volunteer


David Nelson

Expertise

I specialize in IBM z/OS COBOL and MicroFocus OCDS and Server Express non-OOP. Design, coding and performance oriented questions. Also linking to IBM Assembler from COBOL. Because the rules change with version, please state language level, version and platform environment. See CICS for questions about CICS.

Experience

Over 35 years working with COBOL on multiple platforms and OS.

Education/Credentials
Graduate, New York School of Computer Technology.

Past/Present Clients
Major Financial Institutions, State of NC (DHHS), Manufacturing, Financial services, Warehousing, Software developer and others.

©2016 About.com. All rights reserved.