HP 3000 Manuals

PAUSE [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

PAUSE 

The PAUSE statement suspends program execution.  While the program is
suspended, you can display and modify values of individual variables,
modify program lines, and execute commands.

Syntax 

PAUSE [str_expr]

Parameters 

str_expr         String expression that the PAUSE statement displays
                 before suspending program execution.

A suspended program resumes execution when the CONTINUE command is
executed.

PAUSE cannot be a command.  The following are the equivalent to a PAUSE
command:

 *  Control Y (if no ON HALT statement is active).
 *  Control Y twice in rapid succession (even if an ON HALT statement is
    active).

Examples 

     >LIST 
      ! mat
          10 OPTION BASE 1
          20 DIM Matrix_read(3,3),Matrix_inverse(3,3)
          30 ASSIGN #1 TO "matrix"
          40 MAT READ #1; Matrix_read
          50 PAUSE
          60 MAT Matrix_inverse=INV(Matrix_read)
          70 PAUSE
     >RUN 
     >MAT PRINT Matrix_read 
     1                     0                    3

     1                     5                    2

     6                     1                    1

     >MAT PRINT Matrix_inverse 
     0                     0                    0

     0                     0                    0

     0                     0                    0

     >CONT 
     >MAT PRINT Matrix_ inverse 

     -.035714285714857      -.0357142857142857   .1785714285714286

     -.130952380952381       .2023809523809524  -.0119047619047619

      .3452380952380952      .0119047619047619  -.0595238095238095

     >80 CREATE "inverse" 
     >90 ASSIGN #2 TO "inverse" 
     >100 MAT PRINT #2;Matrix_inverse 
     >110 PRINT "Done with program" 
     >120 END 
     >CONT 
     Done with program
     >

In the above program, the program is paused at line 50, and the first two
MAT PRINT statements are executed.  The program is then continued, and
pauses again at line 70.  At that time, the third MAT PRINT is executed,
and lines 80 through 120 are added to the program.  The program is then
continued to completion.  After this last CONT command, the new lines
(80-120) are executed.



MPE/iX 5.0 Documentation