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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you have any questions or need access: Contact myibi@ibi.com


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] how to change format at SQL Calculator in DMC?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] how to change format at SQL Calculator in DMC?
 Login/Join
 
Platinum Member
posted
Hi,

I Have following expression within my SQL Calculator:

Alias: TotalAmount

Expression:
T2.HEALTH_PRICE*T2.QTY*T2.RATIO

T2.HEALTH_PRICE/P20.4
T2.QTY/P14.4
T2.RATIO/P20.4



The expression is fine, but the default Format of "TotalAmount" become P33.0 by system, but want it to be D33.6 which is contain decimal value. If I try change it after P33.0 to D33.6, all decimal value already been run off.
Is it possible to manual set the format of new inserted column by our self?

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


WebFOCUS v8.2.06 , Windows
 
Posts: 137 | Registered: August 29, 2019Report This Post
Virtuoso
posted Hide Post
Nox

In your source master file definition you would create a new DEFINE for that field with the appropriate format and then reference that field by name in your SQL


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2131 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
I'll give it a try, Thanks


WebFOCUS v8.2.06 , Windows
 
Posts: 137 | Registered: August 29, 2019Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] how to change format at SQL Calculator in DMC?

Copyright © 1996-2020 Information Builders