Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Beautify code
I have a huge Cobol program which I have been asked to maintain.
Unfortunately its very badly indented which makes it difficult to follow.

Does anyone know of any software (preferably free) which will indent it
nicely for me?

--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-27-06 12:55 PM


Re: Beautify code
Steve Rainbird wrote:
> I have a huge Cobol program which I have been asked to maintain.
> Unfortunately its very badly indented which makes it difficult to follow.
>
> Does anyone know of any software (preferably free) which will indent it
> nicely for me?
>
Google came back with some interesting hits for the terms "COBOL
beautifier".

Report this thread to moderator Post Follow-up to this message
Old Post
void * clvrmnky()
04-27-06 11:55 PM


Re: Beautify code
Years ago we tried to use a mainframe utility called recoder to replace
go to loops with perform untils...unfortunately the resulting source
code was also hard to understand, and some of our really bad sphagetthi
code made the poor thing do a core dump...

Chris


Report this thread to moderator Post Follow-up to this message
Old Post
hcmason@sbcglobal.net
04-27-06 11:55 PM


Re: Beautify code
"void * clvrmnky()" <clvrmnky.invalid@hotmail.com.invalid> wrote in message
news:DM64g.19706$43.12859@nnrp.ca.mci.com!nnrp1.uunet.ca...
> Steve Rainbird wrote: 
> Google came back with some interesting hits for the terms "COBOL
> beautifier".


Not really. The only one it came up with was something called cblbeau which
costs $495 for the non-trial version.  I only want to do one program!

--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-27-06 11:55 PM


Re: Beautify code
Steve Rainbird wrote:
> "void * clvrmnky()" <clvrmnky.invalid@hotmail.com.invalid> wrote in messag
e
> news:DM64g.19706$43.12859@nnrp.ca.mci.com!nnrp1.uunet.ca... 
>
> Not really. The only one it came up with was something called cblbeau whic
h
> costs $495 for the non-trial version.  I only want to do one program!
>
Really?  I found <http://www.siber.com/sct/tools/cbl-beau.html> as the
first hit, which is advertised as shareware you can try with no line
count restrictions.

I'm not sure how you feel about shareware for what is probably a
commercial use, but I suppose a single use is not really a lost sale.

There is payware at <http://www.semdesigns.com/Purchase/#Formatters> for
US$250.

And it looks like SlickEdit can beautify COBOL, as well.  Might be hard
to get a copy, but you could check eBay.  Perhaps other editors also do
this (i.e., that Swiss-army knife known as Emacs might be a start).

If you already have a compiler license, see if your vendor has a
beautifier.  For example, I think COBOL85 from Fujitsu has a bundles
"structurizer".

Finally, some products like JIndent might be able to do COBOL, or they
are considering it.

Report this thread to moderator Post Follow-up to this message
Old Post
void * clvrmnky()
04-27-06 11:55 PM


Re: Beautify code
Steve Rainbird wrote:
> I have a huge Cobol program which I have been asked to maintain.
> Unfortunately its very badly indented which makes it difficult to follow.
>
> Does anyone know of any software (preferably free) which will indent it ni
cely for me?
>
>
Are you working on an IBM z/OS mainframe?  If so, is the program being
compiled with a currently supported IBM COBOL compiler?  And, if so,
does your shop have the IBM Debug Tool, including the Debug Tool
Utilities and Advanced Functions?  (This module of the Debug Tool
includes IBM CCCA - see below.)

Or, do you have the IBM COBOL Structuring Facility?  (This is a
reformatting tool.)

Or, do you have IBM VisualAge COBOL?  (The Enterprise Edition included
ports of CCCA and CSF; the last version I had, though, these tools were
only available in the OS/2 version.  Later versions, I believe, had them
for the Windoze version - OS/2 support got dropped.  This tool may have
been rolled into WebSphere; I haven't been keeping up.)

Or, do you have IBM CCCA (COBOL & CICS Conversion Aid)?  (As the name
implies, this tool converts OldBOL to NewBOL, to borrow Bill Klein's
terminology.)

The above are tools for the mainframe that would assist you in
reformatting your code.
=====

There is a non-IBM tool, named MHtran-2, from Prince Software.
This is also a conversion aid, and may be able to do reformatting.
You'll have to Google to find out.

Report this thread to moderator Post Follow-up to this message
Old Post
Colin Campbell
04-28-06 02:55 AM


Re: Beautify code
"void * clvrmnky()" <clvrmnky.invalid@hotmail.com.invalid> wrote in message
news:B6c4g.19741$43.5356@nnrp.ca.mci.com!nnrp1.uunet.ca...
> Steve Rainbird wrote: 
> Really?  I found <http://www.siber.com/sct/tools/cbl-beau.html> as the
> first hit, which is advertised as shareware you can try with no line count
> restrictions.
>

That is cblbeau.  I tried it and it comes up with an error which says

"too many arguments: 512. This is likely to be a trial version limitation."

> I'm not sure how you feel about shareware for what is probably a
> commercial use, but I suppose a single use is not really a lost sale.
>
> There is payware at <http://www.semdesigns.com/Purchase/#Formatters> for
> US$250.
>
> And it looks like SlickEdit can beautify COBOL, as well.  Might be hard to
> get a copy, but you could check eBay.  Perhaps other editors also do this
> (i.e., that Swiss-army knife known as Emacs might be a start).
>
> If you already have a compiler license, see if your vendor has a
> beautifier.  For example, I think COBOL85 from Fujitsu has a bundles
> "structurizer".
>
> Finally, some products like JIndent might be able to do COBOL, or they are
> considering it.


We use MicroFocus  which I don't believe has a supplied beautifier unless
anybody knows otherwise.

Thanks for your other suggestions I think we may already have SlickEdit I
will have a dig.

--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-28-06 08:55 AM


Re: Beautify code
"Colin Campbell" <cmcampb@adelphia.net> wrote in message
 news:mOedneHXyrOWE8zZnZ2dnUVZ_sydnZ2d@ad
elphia.com...
> Steve Rainbird wrote: 
> Are you working on an IBM z/OS mainframe?

<snip>

No Microfocus on Linux.

Thanks for the suggestions anyway.
--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-28-06 08:55 AM


Re: Beautify code
"Steve Rainbird" <news.nospam@rainbird.me.nospam.uk> wrote in message
news:4bdvalF10q3faU1@individual.net...
> "void * clvrmnky()" <clvrmnky.invalid@hotmail.com.invalid> wrote in
> message news:B6c4g.19741$43.5356@nnrp.ca.mci.com!nnrp1.uunet.ca... 
<snip>
> We use MicroFocus  which I don't believe has a supplied beautifier unless
> anybody knows otherwise.
>

Should have added that is MF Server Express.

<snip>
--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-28-06 08:55 AM


Re: Beautify code
> And it looks like SlickEdit can beautify COBOL, as well.  Might be hard to
> get a copy, but you could check eBay.  Perhaps other editors also do this
> (i.e., that Swiss-army knife known as Emacs might be a start).


As far as I can see SlickEdit can only beautify

Ada
. C#
. C/C++
. CFML
. HTML
. Java
. JavaScript
. Slick-C
. XML and XSD

--
Steve

Remove "nospam" from email address to reply to me personally



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Rainbird
04-28-06 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:42 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.