Focal Point
Defining '3-6 so not interpretted as 6-Mar on COMT format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9531094972

April 07, 2008, 10:03 AM
JudyM
Defining '3-6 so not interpretted as 6-Mar on COMT format
I'm using format COMT, and when I open the CSV file in Excel, my column gets misinterpretted as a date. To fix it in the spreadsheet, I just prefix with a single quote to show it is alpha.

Problem: When I try to do this from WebFocus, it displays the single quote in a font different than what I'm using in Excel. When I retype the ' in Excel, it turns it to alpha and disappears.

I tried single quote, left quote, double quote, etc.

-* &WFFMT can be either PDF or COMT
-SET &csvQuote = IF &WFFMT EQ 'COMT' THEN '''' ELSE '';
...
IF D_DIFF GE 3 THEN &csvQuote|'3 - 6'
...

Judy


Judy Miller
Software Engr, Decision Support
Prism Group, Inc.
Email: judy@prism-grp.com

WebFOCUS 7.6.9
Windows XP
Output: PDF, Excel, COMT

April 07, 2008, 10:10 AM
FrankDutch
quote:
WebFOCUS 6.4.2


I thought version 6 was never brought to the market.....
the stepped from 5 directly to 7. it must be a typo..

What happens if you save it as EXL2K format.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

April 07, 2008, 11:19 AM
Tony A
Judy,

Your gripe is with Microshaft really because, as always, it is second guessing what you want without giving a damn!

If you need it in a true alpha output then could you use an alternative to the minus sign? (perhaps a tilde '~') Then Eggshell won't be able to second guess you - incorrectly Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
April 07, 2008, 11:34 AM
Tony A
If you really must have the '3 - 6' then try this -
      COMPUTE D_DIFF/A6 = '3 '|HEXBYT(150,'A1')|' 6';

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
April 08, 2008, 11:36 AM
JudyM
This worked .. thank you!

COMPUTE D_DIFF/A6 = '3 '|HEXBYT(150,'A1')|' 6';


Judy Miller
Software Engr, Decision Support
Prism Group, Inc.
Email: judy@prism-grp.com

WebFOCUS 7.6.9
Windows XP
Output: PDF, Excel, COMT