Focal Point
[CLOSED] SQL Passthrough to the DB2

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5417020695

December 28, 2010, 11:54 AM
Krishna.edara
[CLOSED] SQL Passthrough to the DB2
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
December 28, 2010, 12:21 PM
BlueZone
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
December 28, 2010, 03:57 PM
Waz
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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!