IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 table getting -805


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Tue Sep 06, 2011 3:52 pm
Reply with quote

I have access on an alias of a DB2 table but not on the main table.

This table is accessed through a subroutine/API called from a main program.

I included the package of the subroutine in the main program's plan(I used alias name only).

Although main program binds successfully but as soon as DB2 table is accessed in the subroutine it returns -805. Also in log it shows that system resolved table name as Schema(I don't have access to).tablename rather Alias(I have access to).table name

Any pointers???
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 06, 2011 3:56 pm
Reply with quote

Pointer :

Google on : DB2 805
Back to top
View user's profile Send private message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Tue Sep 06, 2011 3:59 pm
Reply with quote

Thanks Peter for your suggestion, but doesn't work.

I need to know why the table did not get resolve as alias.tablename. Couldn't find any appropriate reasoning on google.

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Sep 06, 2011 4:27 pm
Reply with quote

sounds as if the subroutine was not bound with the alias.

why don't you investigate at your shop how others have accomplished this.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top