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.
Trying to use the read function to read a record from a file and use it as a parameter. There is one line in the file and it is 6 characters long. I also tried using a ( RECL 80 RECFM V spec on the FILEDEF, but no go. Here is what I have.
FILEDEF TERM DISK /export/home/issjy/data/term.ftm
-READ TERM &TERM1.A6.
TABLE FILE MYTABLE PRINT COLUMN1 COLUMN2 IF COLUMN3 EQ &TERM1 ON TABLE HOLD AS MYTERMSTUFF FORMAT ALPHA END
What OS are you on? I assume it's UNIX. Is your path correct?
Add a -RUN after the FILEDEF. FILEDEF will not execute before the -READ beacuse all Dialogue Manager commands execute before non Dialogue manager commands, unless a -RUN in encountered.
Add
-TYPE &TERM1
to see if the value was successfully read into the variable.
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
If you are trying to filter against a value stored in an external file you can do that without a –READ. Use IN FILE - Selects records based on values stored in a sequential file. You still need to filedef the external file.
WHERE COLUMN3 IN FILE TERM;
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
I would definitely try Francis' suggestion first. That should do the trick. Spence's suggestion would also work and is an easy workaround in case you can't get it to work, but it would not be as efficient. I think it would have to keep reading the external file (TERM) over and over with each record - but I'm not sure of the internall processing WF uses for the IN FILE functionality. Additionally, the selection criteria could not be passed directly to the DBMS because of this, but using the &var it could.
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