PROGRAM START
IF CCCA available
BEGIN
Run CCCA
IF RC>=4
Complete conversion
ENDIF
END
ELSE
BEGIN
IF OS/VS COBOL Rel 2.4 available
Compile with OS/VS COBOL MIGR option
ELSE IF VS COBOL II available
Compile with VS COBOL II using the CMPR2 and FLAGMIG compiler options
ELSE IF IBM COBOL
Compile with IBM COBOL using the CMPR2 and FLAGMIG compiler options
ELSE
Use Migration Guide
ENDIF
Do manual conversion
END
ENDIF
COMPILE-LOOP: DO
BEGIN
Compile with Enterprise COBOL using EXIT compiler option with Reprot Writer Precompiler
IF Diagnostics=Yes
BEGIN
Solve diagnostics
CONTINUE COMPILE-LOOP
END
ENDIF
Test program
IF Errors=Yes
Fix errors
ENDIF
END
WHILE Errors=Yes
PROGRAM END