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.
How can I debug this problem. WF found two records but report was not display on screen. WF spool out code below on the screen.
TABLE FILE CVAT_LCTC_FUNDING_VW PRINT CVAT_LCTC_FUNDING_VW.CVAT_LCTC_FUNDING_VW.LAB_CORE_TECHNICAL_COMPETENCY_CODE CVAT_LCTC_FUNDING_VW.CVAT_LCTC_FUNDING_VW.FISCAL_YEAR CVAT_LCTC_FUNDING_VW.CVAT_LCTC_FUNDING_VW.FUNDING_AMT WHERE ORG_SOURCE_COMPONENT_CODE NE 'EF' AND ORG_SOURCE_COMPONENT_CODE NE 'EA' AND ORG_SOURCE_COMPONENT_CODE NE 'EN'; WHERE FISCAL_YEAR EQ 2015 OR 2014 ON TABLE HOLD AS LCTCHOLD END -RUN 0 NUMBER OF RECORDS IN TABLE= 2 LINES= 2 -*------------------------------------------------------------------------------------------ -* Define Prior Amount and create report output based on &OUTPUT -*------------------------------------------------------------------------------------------ DEFINE FILE LCTCHOLD PRIOR_AMT/P16CM= IF (LAB_CORE_TECHNICAL_COMPETENCY_CODE EQ LAST LAB_CORE_TECHNICAL_COMPETENCY_CODE) AND (FISCAL_YEAR EQ 2015) THEN LAST FUNDING_AMT ELSE 0; END TABLE FILE LCTCHOLD SUM LCTCHOLD.FUNDING_AMT/P16CM AS '2015,Funding' LCTCHOLD.PRIOR_AMT AS '2014,Funding' COMPUTE DIFF_AMT/P16CM = FUNDING_AMT - PRIOR_AMT; AS 'Delta' BY LCTCHOLD.LAB_CORE_TECHNICAL_COMPETENCY_CODE AS 'Lab Core,Technical Competency' -*WHERE TOTAL LCTCHOLD.FISCAL_YEAR EQ &FISCAL_YEAR; WHERE TOTAL FISCAL_YEAR EQ 2015; END -RUN 1 0 NUMBER OF RECORDS IN TABLE= 2 LINES= 0 -IF 2 NE 0 GOTO DONE; -DONEThis message has been edited. Last edited by: <Kathryn Henning>,
Webfocus 7.7.02, Win 7,Pdf, Excel, HTML
Posts: 25 | Location: VA | Registered: September 10, 2011
here is source code. Pass parameter &Fiscal_Year it works fine except &Fiscal_Year = 2015 hold file contained two records with same Fiscal year 2014. I tried use PRINT or SUM. it is not work.
DEFINE FILE LCTCHOLD PRIOR_AMT/P16CM= IF (LAB_CORE_TECHNICAL_COMPETENCY_CODE EQ LAST LAB_CORE_TECHNICAL_COMPETENCY_CODE) AND (FISCAL_YEAR EQ &FISCAL_YEAR) THEN LAST FUNDING_AMT ELSE 0;
TABLE FILE LCTCHOLD PRINT LCTCHOLD.FUNDING_AMT/P16CM AS '&FISCAL_YEAR,Funding' LCTCHOLD.PRIOR_AMT AS '&PRIORYR,Funding' COMPUTE DIFF_AMT/P16CM = FUNDING_AMT - PRIOR_AMT; AS 'Delta'
BY LCTCHOLD.LAB_CORE_TECHNICAL_COMPETENCY_CODE AS 'Lab Core,Technical Competency' WHERE TOTAL LCTCHOLD.FISCAL_YEAR EQ &FISCAL_YEAR;
Webfocus 7.7.02, Win 7,Pdf, Excel, HTML
Posts: 25 | Location: VA | Registered: September 10, 2011
I try to put friendly message below. However it will not work for the case WHERE Condition in TABLE FILE HOLD is not match parameter user input even in hold file has some records. Then it always go to LABEL DONE and spool out source code on screen display screen. how can I change the code below to capture friendly message "No Records match your selection criteria."
-IF &RECORDS NE 0 GOTO DONE; -MRNOEDIT BEGIN -HTMLFORM no_records_small.htm -MRNOEDIT END
Webfocus 7.7.02, Win 7,Pdf, Excel, HTML
Posts: 25 | Location: VA | Registered: September 10, 2011