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] MORE has error when there is no data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] MORE has error when there is no data
 Login/Join
 
Platinum Member
posted
When I do MORE with 2 HOLD files, if one of them doesn't have any record, I get the error : FORMAT MISMATCH FOR THE FIELD. Do you have any solution for this.

This message has been edited. Last edited by: hainguyen,


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Expert
posted Hide Post
This shouldn't happen.

Before the TABLE FILE with the MORE statement, check the two HOLD files by doing this in the code:
?FF HOLDFILE1
?FF HOLDFILE2
The columns should be in both files and they should have the same format.

The format mismatch error occurs if there is a format mismatch but also if one file has columns the other one doesn't.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Exactly!

See example:
  
-* File more01.fex
TABLE FILE CAR
SUM SALES BY CAR
ON TABLE HOLD AS H1
END

TABLE FILE CAR
SUM SALES BY CAR
IF CAR EQ XXX
ON TABLE HOLD AS H2
END

TABLE FILE H1
PRINT *
ON TABLE HOLD
MORE
FILE H2
END


And the run:
  
 0 NUMBER OF RECORDS IN TABLE=       18  LINES=     10
 0 NUMBER OF RECORDS IN TABLE=        0  LINES=      0
 0 NUMBER OF RECORDS IN TABLE=       10  LINES=     10


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
Master
posted Hide Post
Danny,

what happens if the first ( H1 ) is empty?


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Platinum Member
posted Hide Post
Danny, I followed your code and it worked. I think my code is messed up a little bit so that's why I couldn't get the result.
Thanks all for your help.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Expert
posted Hide Post
Dave, master files get created even if there's no data, so the MORE will work...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Yes, I did test both cases and they worked.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report 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] MORE has error when there is no data

Copyright © 1996-2020 Information Builders