home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14656 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.5 KB  |  88 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!cs.utexas.edu!wupost!news.utdallas.edu!corpgate!brtph560!brtph46!rjohns
  3. From: rjohns@brtph46.BNR.CA (Richard Johns P205)
  4. Subject: Re: Bad escape codes on 9000/720?
  5. Message-ID: <1993Jan8.185447.187@brtph560.bnr.ca>
  6. Sender: news@brtph560.bnr.ca (Usenet News)
  7. Reply-To: rjohns@brtph46.BNR.CA (Richard Johns P205)
  8. Organization: Bell-Northern Research Ltd.
  9. References: <1993Jan5.170026.16862@brtph560.bnr.ca> <31480307@hpcuhe.cup.hp.com>
  10. Date: Fri, 8 Jan 1993 18:54:47 GMT
  11. Lines: 75
  12.  
  13. Thanks very much to Dennis and Shankar for their help.  Now it's all clear.
  14. I'm still going to whine a little more, though.
  15.  
  16. In article <31480307@hpcuhe.cup.hp.com>, dhandly@hpcuhe.cup.hp.com
  17. (Dennis Handly) writes:
  18. |> >2.  What's the recommended way of translating the constant
  19. PasErr_600 (which is
  20. |> >    39321792) to 600 so I can look it up in the error message file? 
  21. Do I have>    to write a giant case statement?
  22. |> 
  23. |> You mean you didn't try to do a linear curve fit?  :-)
  24. |> 
  25. |> You just do:  x div hex('10000');  Provided that x mod hex('10000') = 192.
  26.  
  27. Since the only example in the Pascal Programmer's Guide that shows how to 
  28. report escapecodes *is* a case statement, I feared the worst!
  29.  
  30. |> >3.  Is there anything useful I can do with the error message catalog,
  31. |> >    /usr/lib/nls/$LANG/pc_msgs.cat?
  32. |> 
  33. |> The file /usr/lib/paserrs is an ascii version of that file.  It states that:
  34. |> $  categories:
  35. |> $    600-799   (4)   run-time errors
  36. |> 
  37. |> Which means that message set 4 contains the errors.
  38.  
  39. This isn't documented anywhere in the Pascal manuals.
  40.  
  41. |> >4.  Why isn't any of this explained in the 700 series HP Pascal
  42. Reference or
  43. |> >    HP Pascal Programmer's guide?  One would think it'd be mentioned
  44. with the 
  45. |> >    escape code stuff, at least.  Or under "Error Messages", or something.
  46. |> 
  47. |> This is documented in the Pascal Programmer's Guide in Chapter 11 under
  48. |> ESCAPECODE Function and again under XLIBTRAP intrinsic.  The later
  49. |> show the use of one of these escapecode/errorcodes.
  50. |> 
  51. |> (Both at least mention the name of the file and what it contains.)
  52.  
  53. No, actually, the escapecode section only mentions file PASESC.PUB/SYS on 
  54. MPE XL.  Please add a pointer to pasesc.ph!  
  55.  
  56. |> The detailed mapping of the fields is documented in the MPE/iX intrinsic
  57. |> manual and in the Trap Handling Programmer's Guide, 32650-90026 chapter 5.
  58. |> (This manual is mentioned in the Pascal PG, though it's addressed for
  59. |> the MPE/iX audience.)
  60. |> 
  61. |> At one time I was going to change the pasesc.ph file to be more obvious:
  62. |> 
  63. |>  pascal_subsystem = 192;
  64. |>  PasErr_600       = 600 * hex('10000') + pascal_subsystem;
  65. |>  PasErr_HeapExhausted = paserr_600;
  66. |> 
  67. |> Would that be documentation enough?????
  68.  
  69. Again, no, but it would help.  It would only take a paragraph to explain the 
  70. connection to the error catalog and how decipher the escapecode.  There's a 
  71. whole chapter for Error Recovery and Debugging; why not explain it all?  I'm
  72. not too hot on the idea of ordering and manuals just because they're mentioned
  73. in the Pascal Programmer's Guide, especially when they're MPE/iX manuals and
  74. I'm running HP-UX.
  75.  
  76. Also, the man page could use another "SEE ALSO" or two.  For instance, to 
  77. catgetmsg and the MPE/iX manuals, especially if that material really isn't 
  78. going to be included with HP-UX documentation.
  79.  
  80. Cheers,
  81.  Rick Johns
  82.  BNR
  83.  rjohns@bnr.ca
  84.  
  85. Disclaimer: I said it, BNR didn't.
  86. ==============================================================================
  87. ==============================================================================
  88.