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.
Is MATCH able to handle empty temporary hold files or do I have to write code to figure out that if the hold file is empty do not do a MATCH?
Currently, I'm receiving the following error: (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: ACS_APNAME_HOLD2
My code is:
TABLE FILE ACS_APNAME_HOLD1
PRINT
APPLICANT_KEY
NAME_KEY
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS ACS_APNAME_HOLD2
END
TABLE FILE ACS_RSDNTLADDR_HOLD1
PRINT
APPLICANT_KEY
ADDRESS_KEY
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS ACS_RSDNTLADDR_HOLD2
END
MATCH FILE ACS_APNAME_HOLD2
PRINT NAME_KEY
BY APPLICANT_KEY
RUN
FILE ACS_RSDNTLADDR_HOLD2
PRINT ADDRESS_KEY
BY APPLICANT_KEY
AFTER MATCH HOLD AS ACS_SR_HOLD1 OLD-OR-NEW
END
Thanks in advance for your help!This message has been edited. Last edited by: JL,
Year(s) of experience in WebFOCUS: 5+. Using WebFOCUS 7.7.03 on Windows platform with Oracle/SQL Server.
Waz is right. Even o/p is 0 rows, master will be created. Run the 1st part separately and try checking the output or going line by line by setting echo may provide some clue..
WebFOCUS has the great advantage of dialogue manager and this is a prime example of when to use it. Place a -RUN after the creation of the hold file and then redirect processing to another point of the code if the number of lines retrieved into the hold file is zero.
As for the creation of the master, I'm with Waz, my memory is that the master file was always created and can be tested using -
SET EMPTYREPORT = OFF
TABLE FILE CAR
PRINT CAR
BY COUNTRY
WHERE COUNTRY EQ 'XXXX'
ON TABLE HOLD
END
CMD TYPE HOLD.MAS
The only time the master is not created is when an error is encountered during the hold file creation, but then I guess that you've checked for prior errors?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Furthering Tony's example, the following does create output:
TABLE FILE CAR
PRINT CAR BY COUNTRY
IF COUNTRY EQ SWEDEN
ON TABLE HOLD AS DANNY
END
-RUN
MATCH FILE DANNY
SUM CNT.CAR
BY COUNTRY
RUN
FILE CAR
SUM SALES BY COUNTRY BY CAR
AFTER MATCH HOLD OLD-OR-NEW
END
TABLE FILE HOLD
PRINT *
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006