问题
I'm trying too see how I could add comments to my COBOL program. I know the modern version of COBOL has a way where comments can be written but I am unsure on how to do this.
回答1:
*>
for inline to-end-of-line comments, fixed and free form (in fixed form the*>
will have to be in column 7 or greater).*
in column seven for fixed form COBOL*
in column one, extension for free form, not recommended as it can lead to ambiguous code.- and allowed in some
identification division
header paragraphs,REMARKS
for instance, now marked obsolete, but still used.
Smart COBOL comments are now supported in ROBODoc, latest version enhanced for COBOL.
来源:https://stackoverflow.com/questions/29111670/is-there-a-way-to-write-comments-in-modern-cobol