Focal Point
[SOLVED] can we do a union using webfocus Join...?

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9137011106

March 28, 2011, 04:19 PM
craig01
[SOLVED] can we do a union using webfocus Join...?
Hi all,
can someone explain me how the union can be performed using a Wf Join,i know it can be done using the match (OLD OR NEW),but want to know How to accomplish union using join..

please reply,thanks.

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


WF 7610, WINDOWS
EXCEL/PDF/HTML
March 28, 2011, 04:30 PM
Waz
You don't do it with a JOIN, but with TABLE FILE and the MORE command.

e.g.
TABLE FILE {Data source 1}
PRINT FIELDs
BY FIELDs
{Filters}
ON TABLE HOLD ...
MORE
FILE {Data source 2}
{Filters}
END  


This does rely on the two tables having the same columns specified by the first part of the request.

Any Filters are local to the individual data source.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 28, 2011, 05:08 PM
craig01
thank you very much WAZ.


WF 7610, WINDOWS
EXCEL/PDF/HTML
January 17, 2017, 03:11 PM
Squatch
quote:
Originally posted by Waz:
You don't do it with a JOIN, but with TABLE FILE and the MORE command.

e.g.
TABLE FILE {Data source 1}
PRINT FIELDs
BY FIELDs
{Filters}
ON TABLE HOLD ...
MORE
FILE {Data source 2}
{Filters}
END  


This does rely on the two tables having the same columns specified by the first part of the request.

Any Filters are local to the individual data source.

Hello, Waz from the Past, this is Squatch from the Future.

Could the "same columns" be DEFINE fields?


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
January 17, 2017, 03:51 PM
Waz
quote:
Could the "same columns" be DEFINE fields?


Yes, done it many times.

As long as the formats in each are the same.

[And jumps pack in his Delorean].....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 17, 2017, 03:57 PM
Squatch
quote:
Originally posted by Waz:
[And jumps pack in his Delorean].....

Thanks! And you somehow sounded taller back then.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
January 17, 2017, 04:03 PM
Waz
Cool


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!