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.
If you look at your HOLD master file (ttt.mas) you will see that all fields have been numbered from E01 to Enn where nn is the total number of fields retrieved. That should solve your problem.
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
I see that your last note was in may 2008...If it is not too much trouble to look up for a sample code, can you post an example of how you got it to work?
I need to compare fields/columns from a hold file with table columns in where clause. and I'm trying to see if I can reference the hold file columns by the column number.
I tried using the hold file field names but got error that says - (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: HOLDMAX.FIELD2
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS H001
END
0 NUMBER OF RECORDS IN TABLE= 18 LINES= 18
?FF H001
FILENAME= H001
COUNTRY E01 A10
CAR E02 A16
MODEL E03 A24
SALES E04 I6
Each column in the hold file has an alias name assigned to in in the master, E01, E02, etc. You can use this alias name or the column name in the report.
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
TABLE FILE CAR
SUM
MAX.SEATS AS 'MSEATS'
BY COUNTRY
BY CAR
ON TABLE HOLD AS H001
END
? HOLD H001
-----------------------------
DEFINITION OF HOLD FILE: H001
FIELDNAME ALIAS FORMAT
COUNTRY E01 A10
CAR E02 A16
SEATS E03 I3
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
SEATS
SALES
WHERE SEATS EQ E03;
ON TABLE PCHOLD FORMAT PDF
END
This gives me the error -
quote:
(FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: E03
is there a way to reference th hold file columns in the where clause of another table file definition?
You're saying TABLE FILE CAR but referencing fields from H001 - that will never work. You can join H001 and CAR, but I'n not sure if that's what you're wanting either.
You can also create a hold file that basically is a list of the field values you want to use. Then you can say WHERE fieldname IN FILE filename. Look up Creating Reports With WebFOCUS Language > Selecting Records for Your Report > Reading Selection Values From a File
There are limitations on the size of the referenced file.
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