Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Connecting to DB2
 Login/Join
 
Guru
posted
We're having problems connecting to DB2 in order to use SQL pass-thru. The following statement gives an error.

ENGINE DB2 SET CONNECTION_ATTRIBUTES AXXXXXXXX/,

(FOC1400) SQLCODE IS -104 (HEX: FFFFFF98) XOPEN: 42000

WebFOCUS 5.2.7 on IBM iSeries 5.2.

Tia,
Hakan
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
Do you have any problems access DB2 via a table request? Do you issue a SQL SQLDB2 comand before you SQL statement. Can you issue the same SQL ib a tool like QMF? What Version of DB2?
 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
Texas,

the following TABLE request works fine:

SQL DB2 CONNECT;
TABLE FILE DS_DAY_VW
PRINT *
END

Hakan
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
For each Synonym (MASTER FILE DESCRIPTION) there are 2 file one with a .mas and one with a .acx the acx is the key here. It tell WebFOCUS what the true DB2 table name is. If you can look at is it should look something like this:

SEGNAME=DSDAYVW,
TABLENAME='???.DS_DAY_VW',
CONNECTION=<SOMEDB2INSTANCE>,
KEYS=?
,$

once you have this you should be able to do something like this.

SQL SQLDB2 CONNECT;
SQL SQLDB2
SELECT * FROM ???.DS_DAY_VW;
TABLE FILE SQLOUT
PRINT *
WHERE READLIMIT EQ 10
END

Give this a try.
 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
Texas,

thanx. The site I'm currently working at did not allow the period in the object name. They are using the default iSeries / convention, eg. dbname/tablename instead of the standard SQL dbname.tablename.

/Hakan
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders