How to fix the Oracle error PCC-01005: PROCEDURE DIVISION not found?

In this post, you’ll learn more about the Oracle ErrorPCC-01005: PROCEDURE DIVISION not found with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

PCC-01005: PROCEDURE DIVISION not found

Reason for the Error PCC-01005: PROCEDURE DIVISION not found

Cause: The precompiler could not find the PROCEDURE DIVISION header in a Pro*COBOL program. Some possible causes follow:

o A keyword in the header is missing or misspelled.

o There is an apostrophe in the REMARKS section (the precompiler mistook the apostrophe for the beginning of a string literal).

o There is an unterminated literal in the WORKING-STORAGE SECTION.

o The wrong value for the FORMAT option was specified.

How to fix the Error PCC-01005: PROCEDURE DIVISION not found ?

You can fix this error in Oracle by following the below steps

Action: Check that the PROCEDURE DIVISION header is in place and spelled correctly, that there is no apostrophe in the REMARKS section, that all literals in the WORKING-STORAGE SECTION are terminated, and that the right value for the FORMAT option is specified.

Tags :

Leave Your Comment