Post #1
0 votes
Jordan
Reputation
12
Posts: 32
Joined: May 2, 2026, 11:10 AM
Posted: Jul 24, 2026, 8:29 AM
Tried // and # like other languages. Compiler yelled. What is the actual way to comment a line? And can I do mid-line comments?
Tried // and # like other languages. Compiler yelled. What is the actual way to comment a line? And can I do mid-line comments?
Column 7 with * comments the whole line (fixed format). Or *> for a free-form / inline style comment depending on your compiler options.
On z/OS Enterprise COBOL, * in col 7 is what most of our old code uses.
You must be signed in to reply to this thread