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] can any one help me

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] can any one help me
 Login/Join
 
Member
posted
DEFINE FILE PERIOD
X_BANK_NR/A18 = EDIT(OTLT_ACCT_ID);
X_BK_NR/A18 = EDIT(X_BANK_NR,'9999999$$$$') ;
END
I am trying to extract first 7 digits of the X_BANK_NR
But i am getting this error
RESULT OF EXPRESSION IS NOT COMPATIBLE WITH THE FORMAT OF FIELD: X_BANK_NR

How to fix it?

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


WebFOCUS 7.6
Windows, all output
 
Posts: 5 | Registered: May 18, 2010Report This Post
Guru
posted Hide Post
quote:
DEFINE FILE PERIOD
X_BANK_NR/A18 = EDIT(OTLT_ACCT_ID);
X_BK_NR/A18 = EDIT(X_BANK_NR,'9999999$$$$') ;
END

Try this
  
DEFINE FILE PERIOD 
X_BANK_NR/A18 = EDIT(OTLT_ACCT_ID);
X_BK_NR/A7 = EDIT(X_BANK_NR,'9999999$$$$') ;
END


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Platinum Member
posted Hide Post
Hi,

Is OTLT_ACCT_ID Float value?
You may need to use the function FTOA
FTOA(number, '(format)', outfield)

See if that helps.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Expert
posted Hide Post
X_BANK_NR/A18 = EDIT(OTLT_ACCT_ID);
will only work if OTLT_ACCT_ID is an integer, which it probably is not, since you can't have an integer of 18 characters. As Jimmy suggests, use FTOA to convert a numeric field to alpha.


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
I would suggest using PTOA, as FTOA has a limit of 6 digits.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
quote:
FTOA has a limit of 6 digits

Where did this come from Waz?

As far as I am aware FTOA (and EDIT) handle values up to 2147483647.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
From the Manual:

quote:

The FTOA function converts a number up to 16 digits long from numeric format to alphanumeric format. It retains the decimal positions of a number and right-justifies it with leading spaces. You can also add edit options to a number converted by FTOA.


Waz didn't have his glasses on and missed the 1 in front of the 6. Cool


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
I think that its because I got a new pair of glasses, I can see clearly now, and I'm not used to it. Big Grin


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] can any one help me

Copyright © 1996-2020 Information Builders