home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / sybase / 730 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!vixvax.mgi.com!gumby.mgi.com!lundell
  2. Newsgroups: comp.databases.sybase
  3. Subject: Problem when calling an RPC from a Stored Procedure
  4. Message-ID: <1993Jan22.172616.1@gumby.mgi.com>
  5. From: lundell@gumby.mgi.com
  6. Date: 22 Jan 93 17:26:16 CST
  7. Organization: Management Graphics, Inc.
  8. Nntp-Posting-Host: gumby.mgi.com
  9. Lines: 23
  10.  
  11. Hi,
  12.  
  13. We currently have our Sybase Server running on AIX on an RS 6000. I have 
  14. written a Stored Procedure that makes an RPC call via Open Server to an 
  15. IBM mainframe that has SUPRA.
  16.  
  17. I am able to get my result sets back just fine when everything is working OK.
  18. However, I have noticed the following anomaly. If the RPC fails due to the
  19. user not having an acitve account on the IBM mainframe it appears to return
  20. -4 (permission error) as expected when I am in ISQL. However, control is not
  21. returned to my Stored Procedure; but rather it appears to abort when the Stored
  22. Procedure fails. This unfortunately results in a -1 being returned to the 
  23. clients on the network.
  24.  
  25. We would like to be able to display a meaningful error message to our users
  26. of our system. Is there away for me to capture this error code (-4) returned
  27. from a RPC or to gain control again when I am in the stored procedure?? Are you
  28. able to read in the SQL Communications Area from a stored procedure??
  29.  
  30. Thanks in advance!!
  31.  
  32. -Jim
  33.  
  34.