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.
I'm pretty new to webfocus, I'm not sure what to make of this.
We're getting an error of (FOC037) THE REQUEST IS INCOMPATIBLE WITH TABLEF
but there's nothing here or on IBI's site about this error. Is it something simple?
Here's my .fex if it helps... JOIN CUCASUM.CUCASUM.QDENUM IN CUCASUM TO MULTIPLE CUCAEMP.CUCAEMP.QEENUM IN CUCAEMP AS J2 END JOIN CUCASUM.CUCASUM.QDCLOK IN CUCASUM TO MULTIPLE CUCACLK.CUCACLK.QCCLOK IN CUCACLK AS J3 END DEFINE FILE CUCASUM ADD EMP/A60=QDENUM | FullName; END TABLEF FILE CUCASUM PRINT QDELAP BY QDDEPT AS 'DEPT' BY EMP AS 'EMPLOYEE' ACROSS QDPAYD AS 'DAY' ACROSS-TOTAL ON QDDEPT SUBTOTAL AS '*TOTAL' HEADING "Overtime Report" " " FOOTING "Report Run " WHERE ( QDGETP EQ 'Y' ); ON TABLE SET PAGE-NUM OFF ON TABLE SUMMARIZE CUCASUM.CUCASUM.QDELAP AS 'TOTAL' ON TABLE PCHOLD FORMAT HTML ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
DEFINE FILE CUCASUM ADD EMP/A60=QDENUM | FullName; END TABLEF FILE CUCASUM PRINT QDELAP BY QDDEPT AS 'DEPT' BY EMP AS 'EMPLOYEE' ACROSS QDPAYD AS 'DAY'
You can't sort on a defined field with TABLEF
Since you have only one selection, if a real field then do a TABLE instead.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
You can't sort on any field when using TABLEF. TABLEF indicates to create the report WITHOUT the internal matrix. BY is only allowed to create breaks for printing. If you look in help docs, the answer is pretty evident:
TABLEF is a variation of the TABLE command that provides a fast method of retrieving data that is already stored in the order required for printing and requires no additional sorting.
Using TABLEF, records are retrieved in the logical sequence from the data source. The standard report request syntax applies, subject to the following rules:
Any BY phrases must be compatible with the logical sequence of the data source. BY phrases are used only to establish control breaks, not to change the order of the records.
ACROSS phrases are not permitted.
Multiple display commands are not permitted. Only one display command may be used.
After the report is executed, RETYPE, HOLD, and SAVE are not available. However, you can produce an extract file if you include ON TABLE HOLD or ON TABLE SAVE as part of the request.
NOSPLIT is not compatible with the TABLEF command, and produces a FOC037 error message.
TABLEF can be used with HOLD files and other non-FOCUS data sources when the natural sort sequence of both the request and the data are the same.
TABLEF is not supported with SET EMPTYREPORT. When a TABLEF request retrieves zero records, EMPTYREPORT behaves as if it were set to ON.
The DST. prefix operator is not permitted.
So you've broken at least a couple rules for using TABLEF. Help documentation is probably the FIRST place to check for problems like this - even before the Focal Point forum.
Simple answer is to change to TABLE. No reason for TABLEF here.This message has been edited. Last edited by: Darin Lee,
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007