Comment Line
Comment Line
What is Comment Line?
Comment lines is a full line comments. They are ignored by the COBOL compiler, meaning they have no impact on the program execution. 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 -