Hi All,
This might look very basic, but please support me.
Is there any difference between a commented line and a blank line in cobol for Zos?
TIA.
and1.6.5.6 Blank lines
A blank line contains nothing but spaces in column 7 through column 72. A blank line can appear anywhere in a program.
so there are differences.1.6.5.2 Comment lines
A comment line is any line with an asterisk (*) or slash (/) in the indicator area (column 7) of the line. The comment can be written anywhere in Area A and Area B of that line, and can consist of any combination of characters from the character set of the computer.
Comment lines can be placed anywhere in a program, method, or class definition. Comment lines placed before the identification division header must follow any control cards (for example, PROCESS or CBL).
Important: Comments intermixed with control cards could nullify some of the control cards and cause them to be diagnosed as errors.
Multiple comment lines are allowed. Each must begin with either an asterisk (*) or a slash (/) in the indicator area.
An asterisk (*) comment line is printed on the next available line in the output listing. The effect can be dependent on the LINECOUNT compiler option. For information about the LINECOUNT compiler option, see LINECOUNT in the Enterprise COBOL Programming Guide. A slash (/) comment line is printed on the first line of the next page, and the current page of the output listing is ejected.
The compiler treats a comment line as documentation, and does not check it syntactically.
The difference is you can add comments in the comment-line but blank-line(s) can only have spaces.