SuperBOL - COBOL modernisation

SuperBOL Studio IDE

Give developers a modern environment to take over a COBOL codebase and recover its business rules.

We help teams get started on the client's code and integrate it into their workflow (CI/CD).

Only available with the SuperBOL Subscription

SuperBOL Studio in VS Code

A complete development suite

SuperBOL Studio integrates all the essential tools to develop efficiently in COBOL: smart navigation, contextual help, and automation to gain productivity.

A modern COBOL editor

Completion, navigation to definitions and references, diagnostics while typing: your teams get the comfort of a modern development environment on their COBOL code.

Integrated debugger

Follow the execution of a program step by step and inspect its data, presented as in the DATA DIVISION, to locate the origin of a business discrepancy, an incident or a regression after migration. Remote debugging is possible depending on the configuration.

Debugging session in SuperBOL Studio: current line highlighted, Variables, Watch and Call Stack views

Control flow graph

View the sequence of paragraphs and sections of a program, and go from the graph to the code in one click to quickly understand a legacy program.

Code coverage

See in the editor which parts of the COBOL code were actually executed, from the coverage analysed by GnuCOBOL.

Safe renaming

Rename a data item or a paragraph safely: all its occurrences in the program are updated, and SuperBOL Studio warns you if one of them is in a copybook, without changing it.

Copybooks and REPLACE on hover

Show the contents of copybooks and the results of REPLACE directives by hovering over the code.

Resources

SuperBOL Studio support

We support your teams in adopting and using SuperBOL Studio to optimise your productivity in COBOL development. We can extend SuperBOL Studio and develop new custom tools to meet your precise needs and integrate seamlessly into your development environment.

Discover our offer

Technical specifications

All the features

What SuperBOL Studio IDE brings to VS Code for your COBOL projects.

Configuration and project
COBOL project settingsThe SuperBOL Studio settings define the COBOL dialect (GnuCOBOL, COBOL85, IBM, Micro Focus, GCOS…), the reference format of the sources (automatic detection of fixed or free format, or a forced format, including by file extension), the copybook search paths and their extensions.
superbol.toml project fileThe “SuperBOL: Write Project Configuration” command saves the project configuration in a superbol.toml file at the root, to be put under version control. This file is validated by a JSON schema when edited in VS Code.
Copybook directory searchA command scans the workspace to find the directories that contain copybooks and adds them to the settings.
Analysis of the whole workspaceThe “Analyze Every COBOL File in the Workspace” command analyses all the COBOL files of the project in parallel processes and reports errors, including in files that are not open. Non-UTF-8 files are read with the encoding configured in VS Code.
Cache managementThe language server caches its analyses to speed up the following sessions. A “SuperBOL Caches” view and an indicator in the status bar show the space used and let you purge old entries, with a configurable maximum size and age.
Compilation and execution
Built-in compilation tasksFour ready-to-use tasks compile the current program with GnuCOBOL: module or executable, with or without debugging information. They can be customised in tasks.json (path of cobc, extra options, dialect configuration file).
Running the programRun Without Debugging (Ctrl+F5) compiles the module then starts it, through cobcrun or a custom COBOL runtime if needed.
Compilation errorsThe errors, warnings and notes of cobc are reported in the VS Code Problems panel, with a link to the line concerned.
Compilation listingsThe tasks can produce the listings of the preprocessed programs in a chosen directory. GnuCOBOL listing (.lst) and dump (.dump) files get syntax highlighting.
Code coverageWith the forCoverage option, the program is instrumented and produces coverage files in gcov format. The “Show Coverage”, “Hide Coverage” and “Update Coverage” commands colour the source lines according to whether they were executed or not.
Editor
Syntax highlightingLexical highlighting of reserved words, literals, comments and names, complemented by semantic highlighting derived from the analysis of the program. EXEC SQL blocks are highlighted as SQL.
IntelliSenseCtrl+Space suggests the keywords valid at the cursor position, data and paragraph names, intrinsic functions, and even complete COBOL sentences. Names defined in the COMMUNICATION, REPORT and SCREEN sections are not suggested yet.
Code foldingDivisions, sections, paragraphs, data descriptions, EXEC blocks and statements can be folded to make long programs easier to read.
RenamingF2 renames a data item, a section or a paragraph throughout the program. SuperBOL Studio warns when a reference is in a copybook, and then does not rename.
ReindentationThe VS Code formatting commands (document or selection) readjust the indentation of the lines according to the structure of the program.
Navigation
Outline and breadcrumbsThe Outline view and the breadcrumbs bar present the divisions, sections, paragraphs and data items of the program, to reach them in one click.
Go to symbolCtrl+Shift+O searches for a symbol in the open program; symbol search also extends to the whole workspace.
Definition and peekF12 goes to the definition of a data item or a paragraph, and Peek (Ctrl+Shift+F10) shows it without leaving the file, including when it is in a copybook. Definitions in the COMMUNICATION, REPORT and SCREEN sections, and some in EXEC SQL blocks, are not handled yet.
Find referencesShift+F12 lists all the uses of a data item, a section or a paragraph.
Reference countersAbove each data definition and each section or paragraph, a counter shows the number of references and lets you display them.
Hover on COPY and REPLACEHovering over a COPY directive shows the contents of the copybook; hovering over text replaced by a REPLACE directive shows the resulting text.
Code analysis
Syntax diagnosticsSyntax errors are reported while typing. By default, they are only published for the COBOL85 dialect; a setting enables them for the other dialects, at the risk of false positives.
Data checksSuperBOL Studio also checks the consistency of declarations and conditions, for example PICTURE strings, VALUE clauses ignored under REDEFINES, or abbreviated conditions without a valid expansion.
Data information on hoverHovering over a data item shows its PICTURE clause with sample values, its USAGE, its size and position in the record, its REDEFINES relations, and the comments that document it, even when it is defined in a copybook.
Control flow graphThe “Show Control-flow” command draws the control flow of the whole program or of a section. The graph can be simplified (unreachable nodes removed, sequential transitions grouped, nodes hidden or duplicated) and clicking a node takes you to the matching code.
Arc diagramThe same control flow can be shown as an arc diagram: sections and paragraphs are aligned vertically, and arcs show the transfers of control between them.
Debugger
Starting a debug sessionF5 compiles the program with debugging information then starts it under the SuperBOL Studio debugger, based on GDB. Launch configurations are generated automatically in launch.json and accept arguments, environment variables, working directory and subprograms.
Breakpoints and steppingBreakpoints on statements and paragraph names, then continue, pause, step over, step into or step out from the debug toolbar.
Variables viewThe values of the program's data are shown in the Variables panel and can be changed there. A setting also shows their attributes (size of alphanumeric items, number of digits and scale of numeric items).
Watches and hoverThe Watch panel evaluates the chosen expressions at each stop, and hovering over a data name in the source shows its current value.
Call stackThe call stack shows the sequence of called programs and the calling line in each one.
Debug consoleThe debug console sends commands directly to GDB during the session.
Attaching to a processThe debugger can attach to a program that is already running, locally by its process ID or remotely through gdbserver.
Program outputThe input and output of the debugged program can be shown in a separate terminal or, on Linux, in a VS Code terminal.
Data files (with SuperLoupe)
Discover SuperLoupe
Opening a data fileWith SuperLoupe, a COBOL SEQUENTIAL, LINE SEQUENTIAL, INDEXED or RELATIVE data file opens in VS Code as a table, one record per row. Its structure is taken from the COBOL program that declares it or from a copybook, and this association is remembered.
Record detailsWith SuperLoupe, each record is shown as a tree following its COBOL description, with the PICTURE and USAGE clauses of each field and a raw view of the stored bytes.
Editing a recordWith SuperLoupe, a value can be corrected directly in the file: the input is checked against the PICTURE clause of the field and only the modified fields are rewritten.
Filters and searchWith SuperLoupe, you filter records by column, search the whole file, choose the columns shown and can show only the records in error.
OCCURS tablesWith SuperLoupe, OCCURS groups, even nested ones, are shown folded and unfold on demand, one column per occurrence.

Modernise your COBOL codebase with SuperBOL

From proof of concept to industrial-scale production deployment, get support from one of the main contributors to GnuCOBOL.

The SuperBOL logo

Download our logo in the version suited to your background.

Need another format? Contact us.