home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!troi!steve
- From: steve@dbaccess.com (Steve Suttles)
- Newsgroups: comp.os.vms
- Subject: Re: Turning off DCL WARNING messages: Can it be done?
- Message-ID: <137@mccoy.dbaccess.com>
- Date: 8 Jan 93 23:30:50 GMT
- References: <726512547.621327.RIC@RML2.SRI.COM>
- Organization: Cross Access Corp., Santa Clara, CA
- Lines: 36
- X-Newsreader: Tin 1.1 PL4
-
- RIC@RML2.SRI.COM (Ric Steinberger) writes:
- :
- : If a rusty DCL programmer may be permitted a question, here's mine:
- :
- : Can DCL Warning messages be turned off during execution of a command
- : file? It seems that SET MESSAGE can turn off everything, but not just
- : WARNINGS.
- :
- : Thanks in advance for any suggestions.
- :
- : ric steinberger
- : ric@rml2.sri.com
-
- Ric,
-
- I don't know if this has any value, but one answer might be to set the
- ON level to ERROR and report the value of $STATUS (you could do that
- with a gosub if you wanted errors to continue, or a goto if you intended
- to exit).
-
- A better solution would be to use the /ERROR qualifier on I/O commands
- (the only ones that have them) if those happen to be the ones annoying
- you.
-
- An even better solution would be to design the command file to check for
- the things it might warn about first. A common complaint is a warning
- that a file is missing at time of a deletion attempt; I use:
- $ if f$search(foo) .nes. "" then $ delete 'foo'
- and similar constructs to avoid this type of nuisance.
-
- sas
- --
- Steve Suttles Internet: steve@dbaccess.com Dr. DCL is IN!
- CROSS ACCESS Corporation UUCP: {uunet,sgiblab}!troi!steve Yo speako TECO!
- 2900 Gordon Ave, Suite 100 fax: (408) 735-0328 Talk data to me!
- Santa Clara, CA 95051-0718 vox: (408) 735-7545 HA! It's under 4 lines NOW!
-