Area A and B

10 pts.
whats the use of areas A and B in a cobol programm

Answer Wiki

Thanks. We'll let you know when a new response is added.

“Traditionally, COBOL programs were written on coding forms and then punched on to punch cards. Although nowadays most programs are entered directly into a computer, some COBOL formatting conventions remain that derive from its ancient punch-card history.

On coding forms, the first six character positions are reserved for sequence numbers. The seventh character position is reserved for the continuation character, or for an asterisk that denotes a comment line.

The actual program text starts in column 8. The four positions from 8 to 11 are known as Area A, and positions from 12 to 72 are Area B.

Although many COBOL compilers ignore some of these formatting restrictions, most still retain the distinction between Area A and Area B.

When a COBOL compiler recognizes the two areas, all division names, section names, paragraph names, FD entries and 01 level numbers must start in Area A. All other sentences must start in Area B.”

<img src=”” alt=”Ancient Cobol Coding Form” />

Hope this helps.

Just to complete this issue, columns 73 – 80 (on punch cards) were used to store the name of the program or version number. This was optional, but very useful if you dropped a tray of punched cards containing several programs.

Discuss This Question: 2  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Denny Cherry
    I'm not a Cobol programmer, but I'm pretty sure that more information will be needed for anyone to give any useful advice.
    68,410 pointsBadges:
  • SbElectric
    Well ... carlosdl ... you brought back old memories of COBOL days ... many many moons ago .. & before the advent of latest online instant coding-testing-debugging-modifying days. You are absolutely correct in describing area A & B. Columns 73-80 (ignored by COBOL compiler) were used for general comments. Some used these 6 fields for program name; some entered the date to note when changes were made; some used the initials of the programmer who authored or made changes to the logic. I really miss COBOL - the stable workhorse of bygone era. Thanks.
    2,540 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: