home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22189 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!scifi!acheron!philabs!linus!agate!ucbvax!lrw.com!leichter
  2. From: leichter@lrw.com (Jerry Leichter)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: command procedure calling
  5. Message-ID: <9301280516.AA07703@uu3.psi.com>
  6. Date: 28 Jan 93 04:03:24 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 31
  11.  
  12.  
  13.     >When a command procedure is called by another command procedure 
  14.     >their is always a return to the calling command procedure.
  15.     >Is there a possibility to NOT return to the calling procedure?
  16.  
  17.     Well, you *COULD* execute the command:
  18.         $ MCR DCL
  19.     (don't do this;  it deletes your process, but it does *NOT* return to
  20.     the calling procedure :-).
  21.  
  22.     There's no documented way to exit from the entire stack of DCL
  23.     procedures in a single command....
  24.  
  25. Hey, Carl, can't you RTFM?  Or TFHF (Help File).  From HELP STOP Examples:
  26.  
  27.       4.    $ ON ERROR THEN STOP
  28.               .
  29.               .
  30.               .
  31.  
  32.       In a command procedure, the ON command establishes a default  action
  33.       when any error occurs in the execution of a command or program.  The
  34.       STOP command stops all  command  levels.   If  this  ON  command  is
  35.       executed  in  a  command  procedure  which  in turn is executed from
  36.       within another procedure, control  does  not  return  to  the  outer
  37.       procedure, but to DCL command level 0.
  38.  
  39. STOP is the documented way to exit the entire procedure nest.
  40.  
  41.                             -- Jerry
  42.  
  43.