Subprograms
- CALL. CALL invokes a subprogram: USING passing parameters by reference or content.
- LINKAGE SECTION. The LINKAGE section declares received parameters: the callee’s view of the caller’s data.
- Static versus dynamic calls. Calls bind static or dynamic: literal names bound at link, variables resolved at run.
COPYBOOKS
- Copybooks. A copybook is included source: record layouts and constants shared across programs.
- REPLACING. COPY REPLACING customises inclusion: one layout serving many prefixes.
- Copybooks as contracts. Copybooks are the estate’s contracts: change one, and every consumer recompiles or drifts.
Before and after this level
- Before: Level 5: Files: Sequential Files, Indexed Files, File Processing.
- Next: Level 7: Batch Processing: Batch Jobs, JCL Interaction Concepts, Large-Scale Transaction Processing.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does COBOL Level 6: Programs & Reuse cover?
Subprograms, COPYBOOKS, Shared Business Definitions: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 5: Files, which covers Sequential Files, Indexed Files, File Processing.