Previous Topic: Abnormal Termination of a RunNext Topic: Submitting a Batch Job Stream


Online Interruption of a Run

A run terminates when a panel is on the panel and a command or function key initiates a new activity, such as CLEAR, RETURN, EDIT, DISPLAY, or DELETE.

At the end of a run, the message RUN completed, RC=nn appears. The RC=nn is the value of the return code at the end of the run. Each system message has a message level with an associated return code. The program can also explicitly set the return code to any value.

When an internal system error is detected in the run, $RC is set to 12. See also the $RC function in the Programming Reference Guide.