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?

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.
.



Relevant Pages

  • Other "web places" (especially for IBM COBOL "lurkers")
    ... Particularly to IBM COBOL people ... If you use Micro Focus either to develop mainframe production apps or to port ... programmer" type or how to use utilities or whatever), checkout IBM-MAIN. ...
    (comp.lang.cobol)
  • Re: Cobol books & experiences
    ... Certainly there was an 'IBM Cobol/2' that was a rebadged Microfocus ... For OS/2 the IBM Cobol was VisualAge and ... > Micro Focus product, but that was before I became involved with Micro Focus ...
    (comp.lang.cobol)
  • Re: PL/I for windows
    ... The answer is on the "IBM COBOL Cafe" forum (Unfortunately, there isn't an "IBM PL/I Cafe" - but the question is specific asking for both IBM COBOL for Windows and IBM PL/I for Windows). ...
    (comp.lang.pl1)