Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Tool for moving cobol comments to next line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
tugga11

New User


Joined: 19 May 2009
Posts: 12
Location: Charlotte

PostPosted: Wed Apr 03, 2013 5:22 pm    Post subject: Tool for moving cobol comments to next line
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: 1715
Location: UK

PostPosted: Wed Apr 03, 2013 5:48 pm    Post subject:
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: 12
Location: Charlotte

PostPosted: Wed Apr 03, 2013 5:56 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Wed Apr 03, 2013 5:58 pm    Post subject: Reply to: Tool for moving cobol comments to next line
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

Active Member


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

PostPosted: Wed Apr 03, 2013 6:23 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Apr 03, 2013 6:37 pm    Post subject: Reply to: Tool for moving cobol comments to next line
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us