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     append data from 2 HOLD files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
append data from 2 HOLD files
 Login/Join
 
Member
posted
Hi,
i'm trying to append data from two HOLD files into one HOLD file, but having difficulty.
HOLD file 1:
column1 column2
a1 a2
b1 b2
HOLD file 2:
column1 column2
x1 x2
y1 y2

I am trying to get this result:
HOLD file:
column1 column2
a1 a2
b1 b2
x1 x2
y1 y2

Any help would be appreciated. Thank you.
 
Posts: 6 | Registered: November 16, 2005Report This Post
<RickW>
posted
You can use the MORE command. Just make sure that the fields have the same format.
 
Report This Post
Expert
posted Hide Post
same format and same field names
TABLE FILE HOLD1
PRINT COLUMN1 COLUMN2
ON TABLE HOLD AS HOLD3
MORE
FILE HOLD2
END
-*hold3 will now contain the concatenation

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
THANKS so much Susannah & Rick, it works. I appreciate your help.
 
Posts: 6 | Registered: November 16, 2005Report This Post
<JG>
posted
Using MORE is very popular but adds a step.

If you FILEDEF using (APPEND you can skip the MORE step and go straight to HOLD3.

FILEDEF HOLD3 DISK HOLD3.FTM (APPEND
-RUN
TABLE FILE SOURCE1
PRINT COLUMN1 COLUMN2
ON TABLE HOLD AS HOLD3
END
-RUN
TABLE FILE SOURCE2
PRINT COLUMN1 COLUMN2
ON TABLE HOLD AS HOLD3
END

The advantage is reduced resource requirements when dealing with large data volumes.

Also MORE is not supported (even in 7.1.1) when using ReportCaster. Sometimes it works othertimes it does not.
But officially It's not supported so FILEDEF (APPEND is the best option.

This message has been edited. Last edited by: <JG>,
 
Report This Post
Expert
posted Hide Post
Another downside to MORE is that the columns have to be the same in names, numbers and formats in all tables.
Whereas with JG's solution the columns only have to be the same in number and format, the names can be anything you want. The better solution imho.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thank you so much for the additional info, JG and Tony. I appreciate it a lot. ~R
 
Posts: 6 | Registered: November 16, 2005Report 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     append data from 2 HOLD files

Copyright © 1996-2020 Information Builders