home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!darwin.sura.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!decwrl!infopiz!mccall!ipmdf-newsgate!list
- From: dan@innosoft.com (Daniel C. Newman)
- Newsgroups: vmsnet.mail.pmdf
- Subject: RE: More on (Any status returned by $ PMDF SEND command in 4.1?)
- Message-ID: <01GO3XGA5W5E9FM76B@INNOSOFT.COM>
- Date: 28 Aug 92 15:39:51 GMT
- Organization: The Internet
- Lines: 33
- Return-Path: <epmdf@YMIR.CLAREMONT.EDU>
- Resent-Date: 28 Aug 1992 08:39:51 -0700 (PDT)
- Resent-From: epmdf@YMIR.CLAREMONT.EDU
- Errors-To: epmdf@YMIR.CLAREMONT.EDU
- Resent-Message-ID: <01GO3YAEZZ5Q95OKYS@YMIR.CLAREMONT.EDU>
- X-Vms-To: IN%"DMPM%DUKEMC.BITNET@ymir.claremont.edu"
- X-Vms-Cc: IPMDF
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
- Content-Transfer-Encoding: 7BIT
-
- >>I would like to use PMDF SEND command under program control, but
- >>cannot find any sort of return status on failure (except for the text message).
- >>Is there anything like deliver_status and deliver$message in this facility?
- >>Even upon failure (such as bad address) $status is 1.
- >>This is a much needed feature.
- >>
- >>Thanks,
- >>
- >>Jim
- >
- > I would like to change this a bit. Some failures do result in an error in
- > $status. However, my problem is:
- >
- > %PMDF-E-ALLADDRBAD, All addresses specified are bad; message not sent
- > $ stat = $status !Does $status return anything - no
- > $ sho sym stat
- > STAT = "%X00000001"
-
- My previous message already addressed all of this and was sent before I received
- this additional posting of yours. However, for those interested, I'll explain
- what is going on here that is causing some errors to set $STATUS and others not
- to.
-
- PMDF SEND, as shipped with PMDF, uses LIB$SIGNAL to signal an error. Now,
- LIB$SIGNAL will, in the case of a fatal error, also call $EXIT and $EXIT will
- properly set the $STATUS and $SEVERITY symbols. So, the errors which causes
- $STATUS to be set were, undoubtedly, fatal errors. All other errors (non-fatal
- errors and warnings) were merely signalled but no $EXIT performed. The
- suggested code change I sent you should do what you want: display messages when
- an informational, non-severe, or severe status code occurs AND always set
- $STATUS and $SEVERITY appropriately.
-
- Dan
-