COBOL STANDARD

COBOL Standard -- Version 1.0
07/02/97 


Table of Contents Cobol Guidelines
PURPOSE

To establish standards for developing and maintaining COBOL programs. 


SCOPE

This standard applies to all COBOL programs. Exceptions may be considered for vendor delivered programs. 


OVERVIEW

The Working Group for Standards has developed the following simple, straight-forward practices that are significant and that can be consistently applied.

The following, then, are implemented as standards, to be applied via the Quality Control process.


IDENTIFICATION DIVISION Note: This topic does NOT apply to NEW programs.
  1. Each program must contain a modification history (change log) within the Identification Division.
  2. Each entry in the modification history must contain the

WORKING STORAGE NAMING
  1. Name and define all constants, numeric and literal, with meaningful names within working storage.
  2. Each data element must have only one function or purpose. Do not re-use existing data elements simply because the PICTURE clause satisfies your need (i.e., don't use a date field defined as 9(6) as a calculation field for an unrelated item.)
See Cobol Guidelines for further details.


LINKAGE SECTION
  1. Linkage items must have the same name and displacement in both calling and called programs.
  2. The calling program's parameter size must exactly equal the size of the called program's Linkage Section.

PROCEDURE DIVISION
  1. Mainline batch modules must terminate execution with the STOP RUN or GOBACK statement.
  2. Programs must use the standard catalogued procedures and copybooks that are available. Examples are system abend routines and system standard heading routines. Consult your Team Leader regarding procedures specific to your project.
  3. Terminating errors in a program must cause an abend condition (use system abend routines).

MODIDs

See separate MODID Standard.


CONTROL REPORTS AND CONTROL RECORDS
  1. Program Name must be the first value of each run control record.
  2. Each program must provide, at a minimum, a control report. The control report must show:

REPORT WRITER

Use of Report Writer is prohibited. 


Return to: Systems Development Home Page
Return to: UMS Home Page
This content was last updated on March 22, 2002
This page was last updated on September 3, 2004

Comments to: Standards Working Group
Cobol Standards authored by UMS Standards Working Group