Is there a way to write comments in modern Cobol? [duplicate]

两盒软妹~` 提交于 2019-12-13 00:34:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!