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     [CASE OPENED] TRIMV --> SQL

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE OPENED] TRIMV --> SQL
 Login/Join
 
Gold member
posted
When using function TRIMV('T', SUPC_CDLOK, 6, ' ', 1, 'A6V'), I get a correct translation/aggregation to SQL

When using function TRIMV('L', SUPC_CDLOK, 6, ' ', 1, 'A6V'), I get an error FOC2576 - COMBINATION OF PARAMETERS OF TRIMV CANNOT BE CONVERTED TO SQL
(same thing for option 'B')

Considering I'm connecting to Oracle where the same TRIM function is present, I'm failing to understand why the function isn't getting translated...

Am I missing something?

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


Prod: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
Test: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
 
Posts: 59 | Registered: April 23, 2012Report This Post
Expert
posted Hide Post
Try using the native SQL function instead:

SQL.TRIM(...)

I'm not sure where this is documented but it seems like a great new feature.


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
Expert
posted Hide Post
From the Summary of New Features, v7.7.03:
quote:
SQL.Function Syntax for Direct DBMS Function Calls

The SQL adapters support SQL scalar functions in a request. The function must be row based and have a parameter list that consists of a comma-delimited list of columns, constants, or expressions. In order to reference the function in a request, prefix the function name with SQL.
Though there's no mention of which functions are allowed...


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
Gold member
posted Hide Post
Hi Francis,

I did start using SQL functions in response to a suggestion from JAlbarrán to a previous post of mine.

However, there seem to be some drawbacks when combining several functions in a single define...

That being said, the part I don't understand is why I need to resort to using SQL-functions when the WebFocus functions seem 100% compatible?

(Similarly, I am using SQL.TO_NUMBER instead of EDIT because EDIT refuses to translate to SQL...)


Prod: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
Test: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
 
Posts: 59 | Registered: April 23, 2012Report This Post
Expert
posted Hide Post
Peter,

Yes, the Oracle TRIM function does the same type of trimming, leading | trailing | both, so WebFOCUS should be able to translate the TRIMV.

In the past, I know that using AV fields has been tricky - the V functions are fairly recent.

This is when I'd open a case...


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
Gold member
posted Hide Post
Done!


Prod: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
Test: WebFOCUS 8.0.06 on Win2008/Tomcat7/LDAP Mode
 
Posts: 59 | Registered: April 23, 2012Report 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     [CASE OPENED] TRIMV --> SQL

Copyright © 1996-2020 Information Builders