HELPLIB.HLB  —  COBOL  Run-Time Messages, CANCEL_FAILED
  Cancel failed to find program

  Explanation: The program specified in the CANCEL statement is not
  part of the run-unit.

  User Action:  You must take one or more of the following actions:

      a. If you think that the program specified in the CANCEL
         statement may not be part of the run-unit, add an
         ON OVERFLOW phrase to the CANCEL statement.

         If the program named in the error message is part of
         the run-unit, check the scope of names rules.  The
         named program may not be in a scope that is visible
         to the calling program.

      b. Check to see if the DCL LINK command produced any
         undefined symbol warnings.  Executing a CANCEL
         statement to a program named in an undefined symbol
         warning results in the CANCEL_FAILED error at run time.

      c. Check to see if the object file containing the called
         program was properly linked into the run-unit.  Specify
         /MAP/FULL/CROSS with the LINK command to produce a listing
         map that shows the object files and the programs within
         the object files that are part of the run-unit.

      d. Verify the spelling of the named program.
Close Help