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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
MERGING ROWS
 Login/Join
 
Silver Member
posted
Hello friends,
i wanted to whether we can merge rows from two different hold files.that is for example if we have 10 rows in hold1 and 25 rows in hold2 and both these hold files have the same fields then is it possible to club both the hold files and make a single file which should contain total 35 rows.
thanks for ur help
maddy
 
Posts: 31 | Registered: April 07, 2005Report This Post
Master
posted Hide Post
There are several way to accomplish this one way I us is hold format FOCUS then use the USE command. example:

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS HOLD1 FORMAT FOCUS
END
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS HOLD2 FORMAT FOCUS
END

USE
HOLD1 AS HOLD1
HOLD2 AS HOLD1
END

TABLE FILE HOLD1
PRINT COUNTRY CAR
END

-* END EXAMPLE 1
another way is like this

TABLE FILE CAR
PRINT
CAR
BY COUNTRY
MORE
FILE CAR
PRINT
CAR
BY COUNTRY
ON TABLE HOLD AS HOLD1
END

TABLE FILE HOLD1
PRINT
COUNTRY
CAR
END

Hope this helps
 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Once again, universal concatenation is perfect.

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS HOLD1 FORMAT FOCUS
END

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS HOLD2 FORMAT FOCUS
END

If both files are identical in layout you can do the following

TABLE FILE HOLD1
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS MERGE
MORE
FILE HOLD2
END

MERGE contains all records.
Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Platinum Member
posted Hide Post
Not to beat a dead horse but you can also create a filedef with an append( and use

HOLD AS HOLD1 FORMAT ALPHA for the first and SAVE AS HOLD1 FORMAT ALPHA for the second file...
 
Posts: 118 | Location: DC | Registered: May 13, 2005Report This Post
Silver Member
posted Hide Post
Thanks gut=ys its working now
 
Posts: 31 | Registered: April 07, 2005Report This Post
Platinum Member
posted Hide Post
and to be totally beligerent and to beat a dead horse,.....

my favorite way is an SQL UNION of the hold files. ie:

select blah from hold1
union
select blah from hold2
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders