Start Today

← Documentation

CLI

The OL Next CLI converts programs from the terminal. Run ol-next --help for the full list of options.

OptionDescriptionDefault
--source-kitLanguage kit: cobol-cics, cobol-ims, rpgle-dspf, rpgle-rpccobol-cics
--sourcePath to the main program source filerequired
--screensPath to screen map files (.bms, .mfs, .dspf)-
--copybooksComma-separated copybook or include directories-
--psbIMS PSB source files for DL/I programs-
--dbdIMS DBD source files for DL/I programs-
--outOutput directory for the generated coderequired
--phaseFAITHFUL, REFACTOR, AGGRESSIVEREFACTOR
--oo-styleSTATE_PATTERN, PARAGRAPH_METHODS, WORKFLOW_GRAPHSTATE_PATTERN
--namingPRESERVE, CAMEL_CASECAMEL_CASE
--dynamicDrop @CompileStatic for plain Groovyoff
--traceRecord the path a generated program takes: OFF, PARAGRAPH, STATEMENTOFF

--trace is not for production builds. It changes the shipped artifacts, not just the comparison oracle: PARAGRAPH adds trace calls, and STATEMENT additionally synthesizes an else block for every IF that has none. It is reliable for COBOL only: in RPGLE a SELECT folds into a nested IF chain whose arms all carry the SELECT header's line, so the markers do not say which arm ran. Convert with OFF for anything you intend to ship.

Convert programs from the terminal, without the web console.

Read more