Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SQL Passthrough to the DB2
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] SQL Passthrough to the DB2
 Login/Join
 
Gold member
posted
Hi
Working with SQL Pass-through to the DB2 Data base, Getting following error message while i try to get the result,

Can anyone help me on this?

My Code

 SET SQLENGINE=DB2
ENGINE DB2 SET CONNECTION_ATTRIBUTES REEQCDPD

SQL
SELECT REBUSOBJ.F0006.MCRP09 FROM REBUSOBJ.F0006;
END
-EXIT 


My ERROR
(FOC1400) SQLCODE IS -204 (HEX: FFFFFF34) XOPEN: 42S02
: [S0002] [IBM][CLI Driver][DB2/AIX64] SQL0204N "REBUSOBJ.F0006" is an un
: defined name. SQLSTATE=42704
L (FOC1405) SQL PREPARE ERROR.

Thanks..

This message has been edited. Last edited by: Kerry,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 89 | Registered: September 20, 2010Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Couple of suggestions:

#1) Make sure that the fex is being run on the correct server-node / DB2 instance. The -204 errors we have seen are when the fex was pointed to wrong server / DB2 instances.

#2) Try if this passthru format makes any difference..
 
SQL DB2
SELECT A.MCRP09 
FROM F0006 A;
END
-EXIT 
 


#3) Try coding it as a TABLE file step and trap generated SQL to see how the focus adapter is generating the SQL. This should tell you if the fex is pointed to the correct source.

Hope that helps.
Sandeep Mamidenna

This message has been edited. Last edited by: BlueZone,


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Another option would be to use the WebFOCUS server to start the create synonym process.

This will list all the tables and views available to the user being used to access DB2.

You can then make sure the Table Name is correct.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6136 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SQL Passthrough to the DB2

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.