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.
Is there an easy way to append records to a 3-field hold file without having to do a modify routine or -READ / -WRITE? -READ and -WRITE are somewhat unpredictable in this environment. If there's no other way than to use modify or -READ and -WRITE, then please present your suggestions.
Thank you,
JohnThis message has been edited. Last edited by: Kerry,
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006
If it's a HOLD FORMAT FOCUS, you'd have to use Modify (or Maintain).
If a flat HOLD file, get the filedef attributes for the ddname, reissue the filedef with APPEND, and SAVE (if HOLD was format alpha) or SAVB (if binary) to the ddname. Test and inspect to make certain the old and new rows line up.
You can have a common master file, then hold data to different files. Then issue use command
USE FILEA AS COMMONMASTER FILEB AS COMMONMASTER END
Another easy way is to use (APPEND. Here is the sample code.
FILEDEF HOLD DISK HOLD.FTM (APPEND TABLE FILE CAR PRINT CAR BY COUNTRY WHERE COUNTRY EQ 'ENGLAND' ON TABLE HOLD END TABLE FILE CAR PRINT CAR BY COUNTRY WHERE COUNTRY EQ 'JAPAN' ON TABLE HOLD END TABLE FILE HOLD PRINT * END
Posts: 118 | Location: Omaha, NE | Registered: June 12, 2003
the FILEDEF with APPEND the Lusheng suggests if the answer you're looking for, but there are several other options as well.
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
JG -- Yes, that is a strange statement. It's probably due to the way all the WebFOCUS are configured, and which version each one is. And I have no control over that.
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006
Like almost everyone else has suggested, use MORE:
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
SET ASNAMES=ON
-RUN
TABLE FILE BLAHBLAH34
PRINT
COL1 COL2 COL3
ON TABLE HOLD AS H001
END
-RUN
TABLE FILE BLINGBLING121
PRINT
COL1 COL2 COL3
ON TABLE HOLD AS H002
END
-RUN
TABLE FILE BOINGBOING96
PRINT
APPLE AS COL1
BANANA AS COL2
ORANGE AS COL3
ON TABLE HOLD AS H003
END
-RUN
TABLE FIL1 H001
PRINT COL1 COL2 COL3
ON TABLE HOLD AS H101
MORE
FILE H002
MORE
FILE H003
END
-RUN
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
You shouldn't have any problems with -READ and -WRITE if the program is coded correctly. If you're mixing -READ and -WRITE in the same Dialogue Manager loop, or if there is non-Dialogue Manager code within the loop, use the NOCLOSE option.
quote:
NOCLOSE - Keeps the external file open until the -READ operation is complete. Files kept open with NOCLOSE can be closed using the command -CLOSE filename. The option NOCLOSE is available only in OS/390.
It's strange the WF v5.3.2 documentation states "The option NOCLOSE is available only in OS/390" because that is not true.
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