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

  1. Path: sparky!uunet!ftpbox!news.acns.nwu.edu!zaphod.mps.ohio-state.edu!caen!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!master.cs.rose-hulman.edu!rosevc.rose-hulman.edu!mgrthh
  2. From: mgrthh@rosevc.rose-hulman.edu (Thomas H. Hopson)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: command procedure calling
  5. Date: 27 Jan 1993 21:25:50 GMT
  6. Organization: Rose-Hulman Institute of Technology
  7. Lines: 34
  8. Distribution: world
  9. Message-ID: <1k6ukvINNdk2@master.cs.rose-hulman.edu>
  10. References: <ERMIMWEI.20@er.ele.tue.nl?> <1k4p20INNjbq@gap.caltech.edu>
  11. Reply-To: mgrthh@rosevc.rose-hulman.edu
  12. NNTP-Posting-Host: hydra.rose-hulman.edu
  13.  
  14.  
  15. In article <1k4p20INNjbq@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes:
  16. >In article <ERMIMWEI.20@er.ele.tue.nl?>, ERMIMWEI@er.ele.tue.nl (Wim Beckers) writes:
  17. >>When a command procedure is called by another command procedure  their is 
  18. >>always a return to the calling command procedure.
  19. >>Is there a possibility to NOT return to the calling procedure?
  20. >
  21. >There's no documented way to exit from the entire stack of DCL procedures in a
  22. >single command.
  23.  
  24. Try $STOP.
  25.  
  26. As the help states in one of its examples,
  27.  
  28.  
  29.        4.   $ ON ERROR THEN STOP
  30.               .
  31.               .
  32.               .
  33.  
  34.          In a command procedure, the ON command establishes a default
  35.          action when any error occurs in the execution of a command or
  36.          program. The STOP command stops all command levels. If this ON
  37.          command is executed in a command procedure, which in turn is
  38.          executed from within another procedure, control does not return
  39.          to the outer procedure, but to DCL command level 0.
  40.  
  41.                             - Tom
  42.  
  43. --
  44. Thomas H. Hopson                      work: mgrthh@rosevc.rose-hulman.edu
  45. VMS Manager / CS geek                       mgrthh@rhit
  46. Rose-Hulman Institute of Technology   play: hopsonth@cs.rose-hulman.edu
  47. Terre Haute, Indiana
  48.