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     Read 2 fexes to find if they are the same

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Read 2 fexes to find if they are the same
 Login/Join
 
Platinum Member
posted
Wondering if there is a quick fex I can write to pull in two other fexes to see if they are the same or not. Something like:

-MRNOEDIT -INCLUDE FEX1
-SET &VARIABLE1 = READ FEX1
-MRNOEDIT -INCLUDE FEX2
-SET &VARIABLE2 = READ FEX2
-IF &VARIABLE1 EQ &VARIABLE2 THEN TYPE "THEY MATCH!" ELSE TYPE "THEY DON'T MATCH"

Does anybody think this is possible?


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Expert
posted Hide Post
well, we get the idea that you want, but the way to do it is to actually read each fex , line by line, as tho each were a data file, and compare line 1 to line 1, etc.
You can write a generic master file for a text file of variable length records, and filedef it to your myfex.fex,
or you can try -READ against each fex, looping by a &KOUNTER and compare the same input lines from each fex, 1 by 1, stopping when you encounter a mismatch.
If this sounds like a route you want to pursue, post back, and one of us will help you further.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Mark,

I'm sure there is some BIGGER picture thing I'm missing here, but there are wonderful tools like WinMERGE that will perform file comparisons. I'd like to hear more about the context you are wanting to do this in.

Thanks,

kevin


WF 7.6.10 / WIN-AIX
 
Posts: 141 | Location: Denver, CO | Registered: December 09, 2005Report This Post
<Tim Howard_ABCBS>
posted
UltraEdit will also allow you to compare to files. That's what we currently use.
 
Report This Post
Platinum Member
posted Hide Post
Hello,
Not a bigger picture. I seriously have two fexes that do pretty much the same thing and at first glance appear to contain the same code. And, I think they are both scheduled through ReportCaster. I would like to consolidate that down to one fex.


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Expert
posted Hide Post
I use EditPlus as my text-editor and have configured it to use a Microsoft Windows XP Support Tool called windiff.exe.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     Read 2 fexes to find if they are the same

Copyright © 1996-2020 Information Builders