home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!scifi!acheron!philabs!linus!agate!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: Re: command procedure calling
- Message-ID: <9301280516.AA07703@uu3.psi.com>
- Date: 28 Jan 93 04:03:24 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 31
-
-
- >When a command procedure is called by another command procedure
- >their is always a return to the calling command procedure.
- >Is there a possibility to NOT return to the calling procedure?
-
- Well, you *COULD* execute the command:
- $ MCR DCL
- (don't do this; it deletes your process, but it does *NOT* return to
- the calling procedure :-).
-
- There's no documented way to exit from the entire stack of DCL
- procedures in a single command....
-
- Hey, Carl, can't you RTFM? Or TFHF (Help File). From HELP STOP Examples:
-
- 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.
-
- STOP is the documented way to exit the entire procedure nest.
-
- -- Jerry
-
-