home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / mail / pmdf / 2203 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.2 KB

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