Comment Line
Comment Line
Comment lines are full-line comments. They do not impact the program execution and are ignored by the COBOL compiler. Comment lines are of two types -
- Full line comment - The line starts with "*" in column 7.
- Print stopper line - The line starts with "/" in column 7.
Note! Slash (/) is a print stopper indicator. However, the line with '/' treats as a comment by the compiler.
Practical Example -
Scenario - Example describes how to identify different comments in COBOL program.
Code -