PAUSE


ANSI

 

The PAUSE instruction suspends program execution for the specified period. The instruction uses the following format:

 

 

[label]

PAUSE

{seconds}

 

Where:

label

Optional. A Program Execution Label.

seconds

Required. A previously defined Numeric Variable, numeric Literal, or Expression specifying the number of seconds execution is suspended.

Flags Affected: OVER

Note the following:

  1. The {seconds} parameter can contain a whole number from 0 to 65535. If the {seconds} parameter is a FORM variable and contains decimal digits, up to three (3) decimal digits are used to allow sub-second program suspension periods. (9.6B)

  2. If a Linux runtime executing the PAUSE instruction does not have APIs that allow sub-second program suspension, the decimal places of the {seconds} parameter are truncated. With changes made in release 9.6B, all PL/B Linux runtimes support sub-second program suspension except for the HP_9000 runtime.

  3. If {seconds} is negative, the OVER flag is set.

  4. If no Function Key traps are set, no function key testing is done.

  5. Under PLBWIN, if an event is pending, the PAUSE instruction is ignored.

  6. If a FILEPI instruction is active, it is terminated.

 

 

See Also: Example Code, *W, Program Control Instructions

 



PL/B Language Reference NORETURN PERFORM