Microsoft KB Archive/62950

“Not a COBOL Statement” Setting Breakpoint in Animator

PSS ID Number: Q62950 Article last modified on 06-20-1990

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: To set a breakpoint in ANIMATE.EXE or PANIMATE.EXE, you must place the cursor on the first character of the first word of the COBOL sentence you want to break on. If the cursor is not placed on the first character, ANIMATE or PANIMATE will issue the error message “Not a COBOL statement.” The same is true when trying to “unset” a breakpoint. To unset the breakpoint on a sentence, you must place the cursor on the first character of the sentence; otherwise, the animator will generate the error message “No break here” even if there actually is a breakpoint set on the sentence. This information applies to Microsoft COBOL versions 3.00 and 3.00a for MS-DOS and MS OS/2.

More Information: Breakpoints can be set only on executable statements in the PROCEDURE DIVISION of a COBOL 3.00 or 3.00a program. To set a breakpoint on the following line of COBOL code in the animator PERFORM PrintIt VARYING Counter FROM 1 BY 1 UNTIL Counter IS EQUAL TO 100. place the cursor on the “P” in PERFORM and type “B” then “S”, which causes a breakpoint to be set. If you place the cursor on the “U” in UNTIL and try to set a breakpoint, the animator will generate the “Not a COBOL statement” error message. The animator will also generate this message if you place the cursor on the “E” in PERFORM and try to set a breakpoint. As stated above, you must place the cursor on the first character of the first word in a sentence to set or unset a breakpoint on the sentence.

Copyright Microsoft Corporation 1990.