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     WebFOCUS Double Inserting to DB2 Table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WebFOCUS Double Inserting to DB2 Table
 Login/Join
 
Member
posted
I've written a small FEX to track WebFOCUS Report usage by capturing the UserId, FEX Name, and a DateTimeStamp. These three fields are inserted into a DB2 Table built specifically for that purpose.

The FEX is "-INCLUDE'd" as the first line of each Report FEX that I want to track.

WebFOCUS seems to be performing double inserts, about 10 to 15 seconds apart.

Here is the FOCUS code:

-*** Strip the leading underscore from the &FOCFOCEXEC value
-*** and convert to upper case
-SET &A = ABS(&FOCFOCEXEC.LENGTH);
-SET &F = &A - 1;
-SET &FFMT = 'A' | &F;
-SET &RPTNM = SUBSTR(&A, &FOCFOCEXEC, 2, &A, &F, '&FFMT');
-SET &UCRPTNM = UPCASE(&F, &RPTNM, 'A8');
-*** Convert the TSOID to upercase
-SET &U = ABS(&IBIC_user.LENGTH);
-SET &USERID = UPCASE(&U, &IBIC_user, 'A7');
-*** Get the create date time stamp with micorsecond precision
-SET &DTSTMP = HGETC(10, 'HYYMDm');
-SET &DTSTMPX = HCNVRT(&DTSTMP,'(HYYMDm)',26,'A26');
-*WRITE PLUSRLG &UCRPTNM &USERID &DTSTMPX
-RUN
-SET &ECHO=ALL;
-RUN
SQL
INSERT INTO PLTUSRLG
(FOC_NA, RQSTR_UID_C, RQST_TS)
VALUES('&UCRPTNM', '&USERID', '&DTSTMPX');
COMMIT;
END
-RUN

Any ideas why? Or how to prevent the double insert?


WebFOCUS 716 MVS DB2 AIX UDB
 
Posts: 18 | Registered: November 14, 2005Report This Post
Master
posted Hide Post
are you -INCLUDE'ing more than once?
could you be running it as a pre or post proc in reportcaster?

your code will do one insert into your database.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Member
posted Hide Post
Hi Jason,

No just one -INCLUDE, as the first line in the Report FEX's (we have over 600 of 'em). Most of our FEX's are requested via the WebFOCUS client, i.e. HTML menus run off of our WebFOCUS WebServer. We only have a few RCaster reports.


Ed


WebFOCUS 716 MVS DB2 AIX UDB
 
Posts: 18 | Registered: November 14, 2005Report 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     WebFOCUS Double Inserting to DB2 Table

Copyright © 1996-2020 Information Builders