PROGRAM START
IF COBOL RW Precompiler available
Run Report Writer Precompiler as converter
ELSE
Do manual conversion of Report Writer statements
ENDIF
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 available
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
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