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     [CLOSED] Matching files with uncommon fields split into specific segments?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Matching files with uncommon fields split into specific segments?
 Login/Join
 
Virtuoso
posted
I'm working on a report where rather similar data from two different data sources needs to be compared, namely a list of master filenames and fields on our WF server compared to a list of the same on our WF client.
Some fields are only relevant on the server (such as database names and schema names), while other fields are only relevant on the client (such as the EDA connection used).

So I have two sets of fields with often the same field names, from different sources, that I want to combine into one data source.

I think MATCH FILE is the most appropriate tool to merge these, but because almost all field names are the same between the two data sources I need some way to distinguish them from each other in the result. I was already prefixing almost every field name to that effect, but then it struck me:

Wouldn't it be infinitely convenient to be able to write those identically named unmatched fields into separate segments?

Is that possible at the moment? If so, how to do that? If not, wouldn't that be a good feature to have?

As an example of what I'm dealing with, I currently have this code:
MATCH
FILE MASTERS_remote
PRINT
	APPNAME			AS RAPPNAME
	MASTERFILE		AS RMASTERFILE
	MASTERCREATDT	AS RMASTERCREATDT
	PHNAME			AS RPHNAME

	CREATDATE		AS TBLCREATEDATE
	CATTIME			AS TBLCREATETIME
	RECLENGTH		AS TBLRECLENGTH
	TBTYPE
	SCHEMANAME
	TABLENAME
	REALNAME

	KEYCOLUMNS		AS RKEYCOLUMNS
	COLTYPE			AS RCOLTYPE
	LENGTH			AS RLENGTH
	SCALE			AS RSCALE
	NULLS			AS RNULLS
	REMARKS			AS RREMARKS
	TITLE			AS RTITLE
	LABEL			AS RLABEL
	ALIAS			AS RALIAS
	HELPMESSAGE		AS RHELPMESSAGE
	LONGDESC		AS RLONGDESC
	REMARKS			AS RREMARKS

	USAGE			AS RUSAGE
	ACTUAL			AS RACTUAL
	SKEYS			AS RSKEYS
	KEYSEQ			AS RKEYSEQ
	DEFINE			AS RDEFINE

BY MASTERNAME
BY SEGNAME
BY COLNO
BY FIELDNAME
RUN
FILE MASTERS_local
PRINT
	APPNAME			AS LAPPNAME
	MASTERFILE		AS LMASTERFILE
	MASTERCREATDT	AS LMASTERCREATDT
	PHNAME			AS LPHNAME

	SERVER

	KEYCOLUMNS		AS LKEYCOLUMNS
	COLTYPE			AS LCOLTYPE
	LENGTH			AS LLENGTH
	SCALE			AS LSCALE
	NULLS			AS LNULLS
	REMARKS			AS LREMARKS
	TITLE			AS LTITLE
	LABEL			AS LLABEL
	ALIAS			AS LALIAS
	HELPMESSAGE		AS LHELPMESSAGE
	LONGDESC		AS LLONGDESC
	REMARKS			AS LREMARKS

	USAGE			AS LUSAGE
	ACTUAL			AS LACTUAL
	SKEYS			AS LSKEYS
	KEYSEQ			AS LKEYSEQ
	DEFINE			AS LDEFINE

BY MASTERNAME
BY SEGNAME
BY COLNO
BY FIELDNAME
AFTER MATCH HOLD OLD-OR-NEW
END
-RUN


As you can see, having to prefix all those fields is a bit of a chore...

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


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Hi Wep5622,

From our technicals: Please open a case with Customer Support Services for assistance. The phone number is 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 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     [CLOSED] Matching files with uncommon fields split into specific segments?

Copyright © 1996-2020 Information Builders