A source file can contain just the mainline procedure, the mainline procedure and one or more subprocedures, or only subprocedures. When only subprocedures exist within a source file, a header specification within that source file must include the NOMAIN keyword. Figure 6.1 illustrates the structure of a source file that contains a mainline procedure and two subprocedures.
Figure 6.1: Source file structure with mainline procedure.