COBOL Program Standard

Updtaed 2009.02.22

The purpose of a program standard is to make it easier to understand programs, to develop coding techniques that reduce the complexity of programs, and to control the entire software development effort. The following guidelines are adapted from the book COBOL With Style by Henry Ledgard.

 

FILES

·         With our compiler, Cobol files always have the extension “.cbl”.

·         In this class, data files will always have the extension “.txt”.

·         In this class, “printer” files will always have the extension “.prn”.

·         In this class, error files will always have the extension “.err”.

·         Always turn in hard copies of your "cbl", "prn", and "err" files.

·         Always print your full name as the first line of all output files (both prn and err).

 

GENERAL RULES

 

IDENTIFICATION DIVISION.

Author.
Program-ID.

 

DATA DIVISION.

 

PROCEDURE DIVISION.