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.
I used the SP to get the data from DB2 with from_date and to_date as in input.
I tried to use drill down on account number but showing an error as "0 records in a table" even though the data is present for that date range.
Below is the main Proc from where I have provided the drilldown on CUST_ACC_NO
ENGINE DB2 SET DEFAULT_CONNECTION CONN_NAME -DEFAULT &FROM_DATE='2015/07/21' -DEFAULT &TO_DATE='2015/08/21' -*COMPUTE NEW11/YY-M-D='&par1'; -*COMPUTE NEW22/YY-M-D='&par2'; SQL DB2 EX SYSPROC.TEST_WEBFOCUS_NEW('&FROM_DATE','&TO_DATE')@ ; TABLE FILE SQLOUT HEADING CENTER "STOP PAYMENT DETAILS" PRINT CUST_ACCT_NO AS CUSTOMER_ACCOUNT PYMT_SRCE_DS AS PYMT_INIT_CHANNEL PYMT_TRANS_PRCS_LOC_TS AS PYMT_INIT_TS STOP_PYMT_LOC_TS AS PYMT_STOPPED_TS 5 AS LOB PYMT_SRCE_DS AS PYMT_STOPPED_CHANNEL PYMT_CURR_TRANS_AM AS AMOUNT COMPUTE FDATE/YYMD='&FROM_DATE'; NOPRINT COMPUTE TDATE/YYMD='&TO_DATE'; NOPRINT ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ TYPE=DATA, COLUMN=CUST_ACCT_NO, FOCEXEC=/WFC/Repository/Projectname/Proc_in.fex( \ ACC_NO=CUST_ACCT_NO \ FDATE1=FDATE \ TDATE1=TDATE \ ), $ ENDSTYLE END **************************** And below is the drill down proc, with ACCT_NO, FDATE1 AND TDATE1 as an input from the above procedure
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -DEFAULT &FROM_DATE='2015/07/21' -DEFAULT &TO_DATE='2015/08/21' -SET ASNAMES = ON SQL DB2 EX SYSPROC.TEST_WEBFOCUS_NEW('&FROM_DATE','&TO_DATE')@ ; TABLE FILE SQLOUT HEADING CENTER "STOP PAYMENT DETAILS" PRINT CUST_ACCT_NO AS CUSTOMER_ACCOUNT PYMT_SRCE_DS AS PYMT_INIT_CHANNEL PYMT_TRANS_PRCS_LOC_TS AS PYMT_INIT_TS STOP_PYMT_LOC_TS AS PYMT_STOPPED_TS 5 AS LOB PYMT_SRCE_DS AS PYMT_STOPPED_CHANNEL PYMT_CURR_TRANS_AM AS AMOUNT COMPUTE FDATE/YYMD='&FROM_DATE'; NOPRINT COMPUTE TDATE/YYMD='&TO_DATE'; NOPRINT ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ TYPE=REPORT, FOCEXEC=/WFC/Repository/Stop_Payments/Proc_in.fex( \ ACC_NO=N1 \ FDATE1=N8 \ TDATE1=N9 \ ), $ ENDSTYLE END
****************************************** Drill down Report-->>
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -DEFAULT &FDATE1='2015/07/21'; -DEFAULT &TDATE1='2015/08/21'; -DEFAULT &ACC_NO='371056897009000' SQL DB2 EX SYSPROC.TEST_WEBFOCUS_NEW(&FDATE1,&TDATE1)@ ; TABLE FILE SQLOUT HEADING CENTER "COUNT OF STOP PAYMENT BY ACCOUNT" SUM CNT.CUST_ACCT_NO AS COUNT_STOPPED_PYMT BY CUST_ACCT_NO WHERE CUST_ACCT_NO EQ '&ACC_NO' ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
-SET &ECHO = 'ALL'; , This command help me to figure out the issue.
The issue is solved now, The problem was with the date format.
And in the below code, I need to add the total of the count at the end, how to do this,
ENGINE DB2 SET DEFAULT_CONNECTION CNAME -DEFAULT &FDATE1='2015/07/21'; -DEFAULT &TDATE1='2015/08/21'; -DEFAULT &ACC_NO='371056897009000' SQL DB2 EX SYSPROC.TEST_WEBFOCUS_NEW(&FDATE1,&TDATE1)@ ; TABLE FILE SQLOUT HEADING CENTER "COUNT OF STOP PAYMENT BY ACCOUNT" SUM CNT.CUST_ACCT_NO AS COUNT_STOPPED_PYMT BY CUST_ACCT_NO WHERE CUST_ACCT_NO EQ '&ACC_NO' ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ ENDSTYLE END
As I am new to the WebFOCUS , Could you please explain why WebFOCUS, advantages of WebFOCUS over other reporting tool and how WebFOCUS communicate with the database.
Kind Regards, Usre1This message has been edited. Last edited by: User1,