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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SQLJDBC access to Domino data source

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SQLJDBC access to Domino data source
 Login/Join
 
Master
posted
Folks,

I've been accessing a Lotus Notes Domino data source using the Lotus Notes adapter supplied by IBI and native FOCUS commands. However the response is painfully slow - over a minute to retrieve 7000 small records.

So I thought I might try SQL passthrough as an experiment. SQL is new to me and although I've played with it a bit in the past, it hasn't been within the WebFOCUS sphere.

Here is what I have so far and the error I get. I don't even know if this is possible, but I though I would give it a shot anyway:

SQL SQLJDBC PREPARE SQLOUT FOR
SELECT * FROM SALESACTIVITY
;
TABLE FILE SQLOUT
PRINT *
BY COMPANYCODE
ON TABLE HOLD AS HOLD1
END
-RUN


With this I get:

(FOC1400) SQLCODE IS 33554456 (HEX: 02000018) XOPEN: 94200
: (33554456) [94200]
L (FOC1405) SQL PREPARE ERROR.

This message has been edited. Last edited by: George Patton,


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Gold member
posted Hide Post
One thing that you should be careful in FEX procedures with SQLOUT-s are the ";" they always cause some errors.

Also I your code needs additional END what closes SQLOUT.

  
SQL SQLJDBC PREPARE SQLOUT FOR
SELECT * FROM SALESACTIVITY
END
TABLE FILE SQLOUT
PRINT *
BY COMPANYCODE
ON TABLE HOLD AS HOLD1
END
-RUN


Release: WebFOCUS 8104, AppStudio: 8105
OS: Windows
Output: HTML,Excel,Active Reports
 
Posts: 89 | Registered: November 19, 2013Report This Post
Virtuoso
posted Hide Post
Another thing that you might need to include if you have multiple database connections that make use of the SQLJDBC adapter (is that even a separate adapter?), is to specify which database to use, eg.:
ENGINE SQLJDBC SET DEFAULT_CONNECTION &LOTUSDOMINOCONNECTORNAME


I'm interested in seeing how your experiment progresses, as some of our users have shown some interest to report on information from our Lotus Domino (and Notes) server.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Master
posted Hide Post
Thanks for the suggestions, but I don't think they are going to work - and maybe, as of today, they aren't necessary.

I don't know what is different - prior to right now the NotesJDBC adapter did work, but it was just very slow - and it still is with some queries. But with others it is OK, speedwise. I'm mystified.

For example:
-* Lotus Notes Database
TABLE FILE QUOTEITEMS_LN
COUNT UNID
SUM PQTY
BY CCODE
END

-* Time to process and display 6283 records: 1 minute 5 secoonds

But:
-SET &TODAY=&YYMD;
-*SET &STARTDATE=AYMD(&TODAY, -7, 'I8YYMD');

DEFINE FILE SALESACTIVITY
ACTIVE_SINCE/YYMD=DATECVT(&STARTDATE, 'I8YYMD', 'YYMD');
CODELEN/I1=LENV(COMPANYCODE, 'I1');
COMPCODE2/A12=IF CODELEN EQ 3 THEN '   ' | COMPANYCODE | ' Rep:' ELSE
             IF CODELEN EQ 4 THEN '  ' | COMPANYCODE | ' Rep:' ELSE
			 IF CODELEN EQ 5 THEN ' ' | COMPANYCODE | ' Rep:' ELSE COMPANYCODE | ' Rep:';
BLANKLINE/A1=' ';
FIRSTNAME/A10=GETTOK(DOCAUTHOR, 30,  1, ' ', 10, FIRSTNAME);
NEXTNAME/A10=GETTOK(DOCAUTHOR,  30,  2, ' ', 10, NEXTNAME);
LASTNAME/A10=GETTOK(DOCAUTHOR,  30, -1, ' ', 10, LASTNAME);
FIRSTINITIAL/A1=EDIT(FIRSTNAME, '9$$$$$$$$$');
NEXTINITIAL/A1=EDIT(NEXTNAME, '9$$$$$$$$$');
LASTINITIAL/A1=EDIT(LASTNAME, '9$$$$$$$$$');
SHORTNAME/A3=IF NEXTNAME EQ LASTNAME THEN FIRSTINITIAL | LASTINITIAL ELSE FIRSTINITIAL | NEXTINITIAL | LASTINITIAL;
END

TABLE FILE SALESACTIVITY
SUM
     BLANKLINE AS '' OVER
     SALESACTIVITY.SALESACTIVITY.BODY AS '' OVER
     BLANKLINE AS ''
BY  SALESACTIVITY.SALESACTIVITY.SHORTNAME NOPRINT
BY  SALESACTIVITY.SALESACTIVITY.COMPANYCODE NOPRINT
BY  SALESACTIVITY.SALESACTIVITY.ACTDATE NOPRINT
BY  SALESACTIVITY.SALESACTIVITY.ACTIVITYTYPE NOPRINT

ON SALESACTIVITY.SALESACTIVITY.SHORTNAME SUBHEAD
"Sales Activity report for <SALESACTIVITY.SALESACTIVITY.DOCAUTHOR "
"Activity since <ACTIVE_SINCE "
"Report Date <+0>&DATEtrMDYY "

ON SALESACTIVITY.SALESACTIVITY.ACTDATE SUBHEAD
"<SALESACTIVITY.SALESACTIVITY.COMPANYCODE                  <SALESACTIVITY.SALESACTIVITY.COMPANYNAME  "
"<ACTDATE                  Type: <ACTIVITYTYPE "
"                               Subject: <SUBJECT "
"                        Chemo Rep: <OURREPNAME"
"                        <COMPCODE2 <COMPANYREPNAME "
ON TABLE SUBFOOT
" "
"This report runs from the file &FOCFEXNAME "
WHERE SALESACTIVITY.SALESACTIVITY.ACTDATE GE &STARTDATE
AND SALESACTIVITY.SALESACTIVITY.ACTDATE LE &ENDDATE;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL07 BYTOC
ON TABLE SET STYLE *
-* STYLE STATEMENTS
END

-* Time to process and display 10730 spreadsheet lines with an average of 5 lines of text in each (I'd guess at least 1000 times the data transfer of the first query above): 25 seconds

So a more complex query against a much bigger database runs way faster than a very simple query against a smaller database.

I've had a case opened for some time now and no useful suggestions have emanated from New York.

Here is some (maybe) useful reading for java access to Domino databases:

http://www.ibm.com/developerwo...ccess_pt1/index.html


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] SQLJDBC access to Domino data source

Copyright © 1996-2020 Information Builders