View previous topic :: View next topic
|
Author |
Message |
tugga11
New User
Joined: 19 May 2009 Posts: 10 Location: Charlotte
|
|
|
|
Changeman supports entering your comments after a cobol statement on the same line . Endeavor doesn't support it. We are migrating from Changeman to Endeavor.
Is there a tool that identifies comments entered on the same line as cobol statement and then takes the comments and push it to a new line in next row.
If I run the above tool for a cobol program , all comments that were entered on the same line as cobol statement (For example a line can have comments starting column 40 to column 60 on the same line as cobol statement) should be removed from that line and inserted into a new line in the next row as a Cobol comment. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Well, there you go! You should have stuck to the syntax in the COBOL Language Reference.
It probably would not take long to write a quick Rexx (or COBOL) program to split the line. Presumably these comments start with and identifier similar to the PL/1 or Rexx /* or SQL --. |
|
Back to top |
|
|
tugga11
New User
Joined: 19 May 2009 Posts: 10 Location: Charlotte
|
|
|
|
Yes. The comments start with /* and i want to split the line from this point . Can you please share a tool for this. ? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It would be interesting to see some samples of the comments. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Since we usually comment before code, why not push the comments above rather than below? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Since we usually comment before code |
I have seen code like that, but I do not think it is common. Or is it? |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
You know...I think a DFSORT step could do this. That would be a piece of cake for the PARSE/BUILD combination.
Of course, this assumes that the only place where you'd see /* is in a comment.
Is the close comment a '*/' ?
Can comments be on aline by themselves, and is it '/*.. */' for them too? |
|
Back to top |
|
|
|