1.3.1 Program Units

A program unit is a sequence of statements that defines a computing procedure and is terminated by an END statement. A program unit can be either a main program or a subprogram. An executable program consists of one main program and, optionally, one or more subprograms.

A subprogram is a program unit that is separate from the main program. Subprograms are invoked from the main program or another subprogram. There are two types of subprograms: function subprograms and subroutine subprograms.

For More Information:

For details on subprograms, see Chapter 6.


Previous Page Next Page Table of Contents