Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2060
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: 7314

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: 975
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: 2113
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
No new posts COBOL - JSON GENERATE husni1972 COBOL Programming 1 Fri Aug 17, 2018 3:29 am
This topic is locked: you cannot edit posts or make replies. Adding comments in Synsort rajiv rengasamy SYNCSORT 18 Fri Jul 13, 2018 3:21 pm
No new posts SQL IN predicate using COBOL table jerryte DB2 16 Fri Jun 29, 2018 10:30 pm
No new posts Converting SAS code to Cobol or Easyt... Ashish.Raghav All Other Mainframe Topics 6 Fri Jun 29, 2018 6:01 pm
No new posts Can we use a file both as input and o... Chiku kumar COBOL Programming 6 Thu Jun 28, 2018 3:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us