Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageSteve 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".
Post Follow-up to this messageYears 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
Post Follow-up to this message"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
Post Follow-up to this messageSteve 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.
Post Follow-up to this messageSteve 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.
Post Follow-up to this message"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
Post Follow-up to this message"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
Post Follow-up to this message"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
Post Follow-up to this message> 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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.