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 have a SQL table that has a column with a format of BIT. When I query the column in WebFOCUS the value comes back with a -1 (in sql it comes back as 1). Based on the advise of the IBI site, I used the "ABS" rountine to correct this. Although, with this method I would have to define this all the time. I could add a DEFINE to the master, but does anyone know of a work-around, for the Metadata?
To correct the metadata/synonym, you can create a define field with the ABS subroutine in your master file. Unfortunately, currently the ABS subroutine is the only workaround.
Hope this helps.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004
I like amsterdam's suggestion Since the value is a boolean, your fexes will work whether the value is -1 or 1 DEFINE FILE CAR TEMP/I2 WITH CAR=IF COUNTRY IS 'ENGLAND' THEN -1 ELSE 0; TESTYES/A3 = IF TEMP THEN 'YES' ELSE ' '; TESTNO/A3=IF NOT TEMP THEN 'NOT' ELSE ' '; END TABLE FILE CAR PRINT TEMP TESTYES TESTNO END ... if this doesn't work for you, and you don't want to use ABS , you could always square the variable ... but amsterdam's answer really makes the most sense, imho.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003