Focal Point
[CLOSED] [SHARING] MATCH FILE in InfoAssist

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

February 13, 2019, 05:10 PM
Doug
[CLOSED] [SHARING] MATCH FILE in InfoAssist
I know we cannot do a MATCH FILE in InfoAssist (Ref: These Posts)

But, is there any way in IA to get the same results: All records from two sources? NOTE: The sources have a different number of fields and the field names are difference?

I do get what I want using MATCH FILE.

I know "InfoAssist isn’t a development tool and not really meant for data manipulation.". Do I need to wait till 8205 for such functionality (if it'll be there)?

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
February 13, 2019, 05:27 PM
Waz
Can you do a conditional join in Info Assist ?


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!

February 13, 2019, 05:57 PM
Doug
I think so... What would that condition be?
WHERE [field1] exists-or-is-missing OR [field2] exists-or-is-missing

It would be a OLD-OR-NEW in MATCH FILE.

A JOIN is based on the existence of what's in the HOST, right? So, we can get something from the target if it's missing in the target... But not if it's missing in the host, right?
February 13, 2019, 06:08 PM
Waz
Perhaps it may not work.

Documentations states:

JOIN [LEFT_OUTER|INNER] FILE hostfile AT hfld1 [WITH hfld2] [TAG tag1]
TO {UNIQUE|MULTIPLE}
FILE crfile AT crfld [TAG tag2] [AS joinname]
[WHERE expression1;
[WHERE expression2;
...]
END
where:

INNER
Specifies an inner join.
LEFT_OUTER
Specifies a left outer join.

If you do not specify the type of join in the JOIN command, the ALL parameter setting determines the type of join to perform.


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!

February 13, 2019, 06:17 PM
Doug
I think that's the DEFAULT in the IA JOIN GUI. But, it didn't do the trick. Nor did the inner or outer.

I may create a FOCUS file for them to use, outside of IA, and have them use it. I'll need to schedule it in RC.
February 13, 2019, 06:42 PM
Waz
The only other think I can think of is to use FOCUS level SQL and do a full outer join ??. Don't know if IA supports this.


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!

February 14, 2019, 08:53 AM
BabakNYC
I doubt InfoAssist 8.2.05 will give you MATCH FILE either. What percent of your InfoAssist users need this functionality?


WebFOCUS 8206, Unix, Windows
February 14, 2019, 01:02 PM
FP Mod Chuck
Doug

I think you have the right idea to schedule a job to create the focus file they need. How often does it need to be refreshed?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
February 14, 2019, 01:26 PM
Doug
Thanks Guys...

1) I'll go with a RC Job to run a fex that I created in AS.

2) Percentage of users needing this?
    Righht now: One. But, I know there will be more. We're less than 5% into our BI Initiative, 95% to go Smiler

3) Frowner "I doubt InfoAssist 8.2.05 will give you MATCH FILE either."
February 14, 2019, 08:05 PM
David Briars
Yes, you can obtain a Cartesian product of two data sets with a JOIN.
-* File Many2Many.fex
TABLE FILE CAR
PRINT   COUNTRY 
        CAR
COMPUTE FLAG/A1='X';
ON TABLE HOLD FORMAT FOCUS INDEX FLAG
END
-RUN
-*
JOIN FLAG WITH SEQ_NO IN GGSALES TO ALL FLAG IN HOLD AS J1
-*
DEFINE FILE GGSALES
 FLAG/A1 WITH SEQ_NO = 'X';
END
-*
TABLE FILE GGSALES
"Example of Many-2-Many JOIN"
PRINT SEQ_NO 
      COUNTRY
	  CAR
WHERE SEQ_NO LE 2;
ON TABLE SET STYLE *
 INCLUDE=jellybean_combo.sty, $
 TYPE = TITLE, JUSTIFY=CENTER,$
 TYPE = DATA, COLUMN = SEQ_NO, JUSTIFY=CENTER,$
ENDSTYLE
END  


February 15, 2019, 08:39 AM
Doug
Good answer David,

I wasn't considering (Kinda forgot about) then Cartesian aspect. I need to check that out from a users perspective in InfoAssist.