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     [SOLVED] Match hold files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Match hold files
 Login/Join
 
Silver Member
posted
Hi,

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.
 
Posts: 41 | Registered: September 08, 2008Report This Post
<JG>
posted
7.6.x we now have 11 versions .0 thru .10

There is a very big difference between how they work or don't.

The issue is that if no data is retrieved then no master is being created for your release.

766 and up create a master even if no data is retrieved (not sure about other 76 flavors).

Try SET EMPTYREPORT=ON might help

Other than that you need to code some logic.
 
Report This Post
Expert
posted Hide Post
As far as I can remember, a master was always created, when 0 records were extracted.

This shouldn't be the issue.

I would think that there is another problem in the creation of the hold files.

Do you have the FOCUS output from a run, there may be clues.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
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..


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Expert
posted Hide Post
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, 2004Report This Post
Virtuoso
posted Hide Post
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, 2006Report This Post
Silver Member
posted Hide Post
Thank you for the suggestions! Our server was upgraded to 7.6.6 and the MATCH code worked without any changes.


Year(s) of experience in WebFOCUS: 5+. Using WebFOCUS 7.7.03 on Windows platform with Oracle/SQL Server.
 
Posts: 41 | Registered: September 08, 2008Report 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     [SOLVED] Match hold files

Copyright © 1996-2020 Information Builders