IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Tool for moving cobol comments to next line


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tugga11

New User


Joined: 19 May 2009
Posts: 10
Location: Charlotte

PostPosted: Wed Apr 03, 2013 5:22 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 03, 2013 5:48 pm
Reply with quote

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
View user's profile Send private message
tugga11

New User


Joined: 19 May 2009
Posts: 10
Location: Charlotte

PostPosted: Wed Apr 03, 2013 5:56 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 03, 2013 5:58 pm
Reply with quote

It would be interesting to see some samples of the comments.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Apr 03, 2013 6:23 pm
Reply with quote

Since we usually comment before code, why not push the comments above rather than below?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Apr 03, 2013 6:37 pm
Reply with quote

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
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Apr 03, 2013 7:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top