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     How do I combine data from two WebFOCUS procedures

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How do I combine data from two WebFOCUS procedures
 Login/Join
 
Member
posted
I have two procedures with this in common:
Both have two fields that when combined are unique (key). The created key in both procedures are identical.

I want one report with data from both procedures. Actually, I want all the data from one procudure and only data from the other procedure where the combined 'key' fields are the same.

How do I do this in WebFOCUS. By the way, I don't know how to write code. I'm a GUI person.
 
Posts: 9 | Registered: March 30, 2007Report This Post
Platinum Member
posted Hide Post
Patty,

Other way around for me. I'm a coder. But I'll try to help anyway.

Let's establish a vocabulary. Let's say procedure A creates hold file A1, and procedure B creates hold file B1. If you want the combine to take place immediately after A1 and B1 are created, then you probably want another procedure - call it C - that includes or executes A and B. You can do that with the GUI.

After A1 and B1 are created, you want the combine them with MATCH FILE. Click on the diamond after B and look for MATCH. Click that. The GUI will attempt to guide you through the process. I hope the help you get there is good enough, because it would be pretty complicated to explain here. If you have a creating reports manual, look for MATCH FILE. Even if you don't write code, then explanation should help.


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Member
posted Hide Post
Thank you so much! That's exactly what I needed.
 
Posts: 9 | Registered: March 30, 2007Report This Post
Guru
posted Hide Post
There's also a thing called JOIN that you can do with the Report Painter GUI. Except I'm not sure if you can join 2 held files. dwf?


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Member
posted Hide Post
The procedures are not in the list of tables when I choose MATCH from the diamond. Our DBA do not know how to give me access to this. Any help will be appreciated.
 
Posts: 9 | Registered: March 30, 2007Report This Post
Platinum Member
posted Hide Post
You have to run your routines at least once to create the hold files. Master files will be created at that time, and it is the two masters you want to look for when you choose the match diamond. It is very possible that your hold files and masters are being written to temp space, which means they aren't being saved. You want to reasearch the command APP HOLDMETA to overcome that. SET TEMPDIR will do the same thing, I think. The point of all that is to persuade WebFOCUS to actually save the master file descriptions created with the HOLD statement, so you can use them in the MATCH.

And, as Anatess suggested, you should also be able to use join. It might even be a little easier. If you hold your file with FORMAT FOCUS, the join will almost certainly work better than the MATCH, anyway.

Lot of stuff to have to manage, huh?


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Virtuoso
posted Hide Post
You can join hold files as long as they have something to use as a key, which is ususally a 'by' statement field

Table file a1
print b c d
by e
on table hold as hold1
end
table file b1
print f g h
by i
on table hold as hold2
end
join e in hold1 to g in hold2

...

GUI lets you do this as well.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Leah, don't you mean

join e in hold1 to i in hold2

I don't ever do it this way. I will always make the second hold file (hold2) a format FOCUS and INDEX i.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
Thanks I can't type the join should be
joine e in hol1 to i in hold2


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report 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     How do I combine data from two WebFOCUS procedures

Copyright © 1996-2020 Information Builders