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] combining focus tables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] combining focus tables
 Login/Join
 
Silver Member
posted
Here's some sample code of a report (encumbrances6320.fex) I'm trying to run:

USE
Encumbrances2017 AS EncumbrancesAll
Encumbrances2018 AS EncumbrancesAll
END

TABLE FILE EncumbrancesAll
IF RECORDLIMIT EQ 10
PRINT *
ON TABLE HOLD AS Encumbrances_82 FORMAT FOCUS
END

But I get the following with SET ECHO:

USE
Encumbrances2017 AS EncumbrancesAll
Encumbrances2018 AS EncumbrancesAll
END
TABLE FILE EncumbrancesAll
IF RECORDLIMIT EQ 10
PRINT *
ON TABLE HOLD AS Encumbrances_82 FORMAT FOCUS
END
-EXIT
ERROR AT OR NEAR LINE 56 IN PROCEDURE encumbrances6320
(FOC036) NO DATA FOUND FOR THE FOCUS FILE NAMED: encumbrances2017.foc

ERROR AT OR NEAR LINE 57 IN PROCEDURE encumbrances6320
(FOC036) NO DATA FOUND FOR THE FOCUS FILE NAMED: encumbrances2018.foc

ERROR AT OR NEAR LINE 68 IN PROCEDURE encumbrances6320
(FOC036) NO DATA FOUND FOR THE FOCUS FILE NAMED: ENCUMBRANCESALL

This is what FOC036 is:

(FOC036) NO DATA FOUND FOR THE FOCUS FILE NAMED: %1
Either data cannot be located for the FOCUS file, or access is not
allowed. If data cannot be located, a USE command may be needed.

The above code works with WebFocus version 77. However, we're migrating to version 82 and that's where I'm getting the FOC036 error. But if I do a TABLE FILE against one of those 2 focus tables in version 82, I get data.

I don't understand why the USE statement can't get to the data in those 2 focus tables.

Thanks,
Mark

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


WF 8.2.02
App Studio
DataMigrator
ReportCaster
Windows Server 2016
 
Posts: 42 | Registered: September 08, 2003Report This Post
Virtuoso
posted Hide Post
Mark

Make sure the .foc files are in a app folder in the APP PATH or add an APP PATH command to the app folder at the beginning of the fex.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
quote:

Encumbrances2017
Encumbrances2018

What file type are they ?
Do you have a MFD (.mas) defined for them ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
USE only works with .FOC files.

https://webfocusinfocenter.inf...ng/source/use108.htm


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Silver Member
posted Hide Post
The 2 tables in the USE are focus tables. In the real code I use APP PATH. Like I say, the same code works in version 77.

But minutes ago, I looked at a focexec my co-worker has with a USE and it works fine. She's using different focus tables. I'm trying to figure out what other differences there are between hers and mine.

Thanks,
Mark


WF 8.2.02
App Studio
DataMigrator
ReportCaster
Windows Server 2016
 
Posts: 42 | Registered: September 08, 2003Report This Post
Master
posted Hide Post
There is A LOT of code tightening between v77 and v82. You might need a fully qualified path to the hold file.

Try the following and see if WF can give you the full path to the hold files
  
WHENCE Encumbrances2017 MASTER
WHENCE Encumbrances2018 MASTER


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Silver Member
posted Hide Post
Hallway,

I thought your suggestion was one of the many things I tried. However, when I just tried it, it worked!

Apparently, I used the path for the focus tables, but I left off the ".foc" filename extension. Using .foc along with the path is what did the trick.

Thanks,
Mark


WF 8.2.02
App Studio
DataMigrator
ReportCaster
Windows Server 2016
 
Posts: 42 | Registered: September 08, 2003Report 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] combining focus tables

Copyright © 1996-2020 Information Builders