Focal Point
Numeric column issue
July 08, 2008, 03:52 PM
Gobinath VelusamyNumeric column issue
Hi
When i display the numeric fields in the output , it displays as 2,000.
Examle
2000 =2,000
2345 = 2,345
i am using the format like that
TABLE FILE SQLOUT
PRINT
AMOUNT/D20CBM AS AMOUNT
END
so my output will be 2,345 like that
My requirement is my output should be without the semicolon
like 2000,2345
Please help me to solve the issue.
Thanks
Gobinath Velusamy
WebFOCUS 7610
Windows
July 08, 2008, 04:11 PM
SayedGobinath,
Try something like this...
TABLE FILE CAR
PRINT
DEALER_COST
DEALER_COST/D7c
END
For DEALER_COST/D7c the lower case c suppresses the comma.
Sayed
WF 8.x and 7.7.x Win/UNIX/AS400, MRE/Portal/Self-Service, IIS/Tomcat, WebSphere, IWA, Realmdriver, Active Directory, Oracle, SQLServer, DB2, MySQL, JD Edwards, E-BIZ, SAP BW, R/3, ECC, ESSBASE
July 08, 2008, 04:14 PM
jimster06First , is a comma and not a semi-colon.
If your numeric output is double precision floating point, 'D', then the format defaults to C, ie the comma is included; but if you over-ride that with c then the comma is suppressed.
jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
July 08, 2008, 04:16 PM
Sayedquote:
AMOUNT/D20CBM AS AMOUNT
FYI! Try this for your case with lower case c.
AMOUNT/D20cBM AS AMOUNT
WF 8.x and 7.7.x Win/UNIX/AS400, MRE/Portal/Self-Service, IIS/Tomcat, WebSphere, IWA, Realmdriver, Active Directory, Oracle, SQLServer, DB2, MySQL, JD Edwards, E-BIZ, SAP BW, R/3, ECC, ESSBASE
July 08, 2008, 04:38 PM
jimster06Additionally, you may search the Technical Documentation Library using 'numeric display options' as a search argument for much more info.
You can enter the library from the upper right of this screen.
jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
July 09, 2008, 09:34 AM
ira1. You mean a ',' and not a ';'
2. Lower 'c' as stateD will suppress comma
3. Try using 'P' format instead of D, although calculation results may vary.
Ira
aix-533 WF 537
aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
July 09, 2008, 09:44 AM
PBrightwellIf you are wanting to save this with a comma between the values, the output format should be COMMA.
Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes