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

Understanding SQLID and database qualifier specified in qrys


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

New User


Joined: 26 Oct 2006
Posts: 2
Location: White Plains, NY

PostPosted: Fri Nov 21, 2008 2:36 am
Reply with quote

Hi,

First time I am working with DB2 and I am trying to understand the difference between in setting SQLID and a database qualifier specified in executing dynamic sql statements in SPUFI.

I have a situation where I am using database qualifier ABC.<table-name> in SPUFI where as some of my colleagues been successful in running the same query with XYZ.<table-name>.

When I did to execute a query with select * from XYZ.<table-name>; it resulted me in errors giving SQLCODE = -204, saying undefined name in DB2 subsystem.

But when I tried to execute in this manner it executed successfully:
set current sqlid = 'xyz';
select count(*) from <table-name>;

I would like to understand is that Userids accessing DB2 tables matters in this scenario. Appreciate in your knowledge share on this topic.

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

New User


Joined: 17 Aug 2006
Posts: 13
Location: Pune

PostPosted: Wed Dec 17, 2008 2:58 am
Reply with quote

Hi There,

Type_Description_Herehttp://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.cc.doc/db2_390/setcurrentsqlid.htm
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 What database does Jobtrac use CA Products 4
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Capturing COBOL job and program names... All Other Mainframe Topics 2
No new posts Products/Tools to Optimize Adabas Dat... Compuware & Other Tools 2
Search our Forums:

Back to Top