Skip to main content

Hi,

VS Enterprise 2019 (v.16.11.5)

VC 7.0.00248 SN

I am compiling one of my .pco files and I get the following Output:

...

error COBCH0641 : '.' missing following procedure name declaration, or unrecognized verb

...

In the Error List I get loads of errors (strangely, other .pco files appear also)

When I doubleclick on the error in the Output window, VS puts me on the last line (2576) of the program.

I can see the red ‘wave’ on line 2576 but that is not helping me.

I also tried to Show All Copybooks but the red ‘wave’ is still on line 2576 .

When I doubleclick on the error in the Error List window, VS puts me on line 1753 for some reason.

I never touched the .pco file, I only changed 1 .cpy and 2 .cob files.

These .cpy and .cob files are used in other programs and they compile fine.

How can I get to the exact line where the compile error occurs ?

I really don’t see what is happening here.

Can anybody help me ?

Thanks!

Kr,

Stefan

Hi,

VS Enterprise 2019 (v.16.11.5)

VC 7.0.00248 SN

I am compiling one of my .pco files and I get the following Output:

...

error COBCH0641 : '.' missing following procedure name declaration, or unrecognized verb

...

In the Error List I get loads of errors (strangely, other .pco files appear also)

When I doubleclick on the error in the Output window, VS puts me on the last line (2576) of the program.

I can see the red ‘wave’ on line 2576 but that is not helping me.

I also tried to Show All Copybooks but the red ‘wave’ is still on line 2576 .

When I doubleclick on the error in the Error List window, VS puts me on line 1753 for some reason.

I never touched the .pco file, I only changed 1 .cpy and 2 .cob files.

These .cpy and .cob files are used in other programs and they compile fine.

How can I get to the exact line where the compile error occurs ?

I really don’t see what is happening here.

Can anybody help me ?

Thanks!

Kr,

Stefan

Hi Stefan,

The error is coming from the COBOL compiler and it is indicating that there is a missing period or an invalid statement. What are the statements in the PCO file that directly precede or follow the copy statements? Something in the copybook seems to be putting the PCO in error. Perhaps you could revert back to the pre-modofied versions of the copybooks and add the new ones back one at a time to determine which one is causing the error?


Hi Stefan,

The error is coming from the COBOL compiler and it is indicating that there is a missing period or an invalid statement. What are the statements in the PCO file that directly precede or follow the copy statements? Something in the copybook seems to be putting the PCO in error. Perhaps you could revert back to the pre-modofied versions of the copybooks and add the new ones back one at a time to determine which one is causing the error?

Hi Chris,

Thanks for your answer.

That's exactly what I did, revert to the previous versions, but the problem remains.

I am now reverting to the complete backup of the entire project.

Stefan


Hi Chris,

Thanks for your answer.

That's exactly what I did, revert to the previous versions, but the problem remains.

I am now reverting to the complete backup of the entire project.

Stefan

The complete backup and reapplying the changes solved the problem.

Thanks