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.
I'm running webfocus version 5.3 and am trying to run a script that incrementally adds a new parameter for purposes of gathering data, it goes something like so:
DEFINE FILE CAR MYCARID/A8= IF(MAKE = 'CHEVROLET' AND MODEL = 'CAMARO' AND COLOR = 'RED') THEN '0808909001' ELSE IF(MAKE = 'CHEVROLET' AND MODEL = 'TRAILBLASER' AND COLOR = 'BLUE') THEN '0909090901' ELSE ... END
TABLE FILE CAR PRINT MYCARID MAKE YEAR WHERE (MAKE = 'CHEVROLET' AND MODEL = 'CAMARO' AND COLOR = 'RED') OR (MAKE = 'CHEVROLET' AND MODEL = 'TRAILBLASER' AND COLOR = 'BLUE') OR ... END
My question here is whether WebFOCUS actually has a limit on these sections. I found that after about 100 or so of these repeated find and define lines of code, the processing time almost triples. Is there an easier way to do this or is it pretty much downhill from here? I would use an external database file to reference these values but I am not sure how I can do something like that, my experiences with FILEDEF in WebFOCUS has not been all that great. Any suggestions?
You should always try to do your WHERE statements against database fields as opposed to DEFINEd fields. That way you are not evaluating the DEFINE for rows you will not ultimately keep.
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
BTW... is the MYCARID broken down into sections or is each number random... I mean do some of the digits represent Chevrolet and some represent Blue, etc?
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
Well, that's just the thing, the code that gets put in can be completely random. So it can say "HelloWorld" and really have no relationship with MAKE or MODEL. That's where the connundrum rolls in because I can suddenly just say instead of putting 2007JaguarXtype, it can go to 2007HelloWorld. And after about 100 of those DEFINE...ELSE statements I wonder if it's taking a toll on the processing time...