VMS Help
STOP, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    1.$ RUN MYPROG
         .
         .
         .
 <Ctrl/Y>

      Interrupt
      $ STOP

      The RUN command in this example begins executing the image
      MYPROG. Subsequently, the Ctrl/Y function interrupts the
      execution. The STOP command then terminates the image.

    2.$ @TESTALL
         .
         .
         .

 <Ctrl/Y>

      Interrupt
      $ STOP

      The @ (execute procedure) command in this example executes
      the procedure TESTALL.COM. Subsequently, the Ctrl/Y function
      interrupts the procedure. The STOP command then returns control
      to the DCL command interpreter.

    3.$ RUN/PROCESS_NAME=LIBRA  LIBRA
      %RUN-S-PROC_ID, identification of created process is 0013340D
         .
         .
         .
      $ STOP LIBRA

      The RUN command in this example creates a subprocess named
      LIBRA to execute the image LIBRA.EXE. Subsequently, the STOP
      command causes the image to exit and deletes the process.

    4.$  ON ERROR THEN STOP
         .
         .
         .

      In a command procedure, the ON command establishes a default
      action when any error occurs in the execution of a command or
      program. The STOP command stops all command levels. If this ON
      command is executed in a command procedure, which in turn is
      executed from within another procedure, control does not return
      to the outer procedure, but to DCL command level 0.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.