FAQ > PERCobol Compiler Notes > PERFORM paragraph/section mismatch

Search the FAQ for entries containing:

I am getting error messages which I do not understand:  Cannot PERFORM paragraph/section through section/paragraph

Answer:

The message indicates that the first name in the PERFORM is a paragraph or section, and the second name in the PERFORM is the other type.  You cannot perform a paragraph through a section, or a section through a paragraph. These must be matched.  (Either specify just PERFORM section or PERFORM paragraph THROUGH paragraph; PERFORM section THROUGH section is valid as well, just not commonly used.) 

Note: In the error message paragraph/section it is followed by section/paragraph; it is trying to indicate that there was a mismatch between the two halves of the perform statement.



Last updated on December 28, 2009 by Daniel Myers