HPlogo Process Management Programmer's Guide: 900 Series HP 3000 Computer Systems > Chapter 2 Process Management Tasks

Requesting a Process Break

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

During a session, your program can initiate a break programmatically with the CAUSEBREAK intrinsic. The CAUSEBREAK intrinsic performs the programmatic equivalent of pressing BREAK in a session. MPE/iX suspends the entire user process structure (below the Root CI process) and activates the Root CI.

The following is an example of a CAUSEBREAK intrinsic call:

   CAUSEBREAK;

While you are in BREAK mode, MPE/iX permits you to use a limited number of CI commands to perform functions such as creating a file or transmitting a message. (Refer to the MPE/iX Commands Reference Manual (32650-90003) for a discussion of commands available in BREAK mode.) When you execute the :RESUME command, MPE/iX returns all user processes to the state they were in before the CAUSEBREAK intrinsic call executed.

NOTE: You are not permitted to use the CAUSEBREAK intrinsic in a job. Also, a program containing the CAUSEBREAK intrinsic will not break if it is executed from a UDC in which the NOBREAK option is specified.
Feedback to webmaster