The last time I used Focus on a mainframe we didn't have EXL2K as an output format so I'm sorry I can't help you. Hopefully someone with current mainframe experience will come forward.
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
June 24, 2009, 09:57 AM
ac1
Saving file as FORMAT EXCEL, SET CENT-ZERO=ON works properly but, unfortunly, I need to save it as EXL2K.
I was wondering if it is possible to use the SET STYLE section to define the numeric format but I have found nothing.
I'm not sure that I understand the issue completely. But if you're looking for the following RESULTS:
COUNTRY SALESCST SALESINT SALESMOD SALESVAL
ENGLAND .24435009 0 24435009 0,24
FRANCE 6.95478276 6 95478275 6,95
ITALY 2.33567987 2 33567986 2,33
JAPAN 7.37364145 7 37364144 7,37
W GERMANY 9.76414075 9 76414075 9,76
... then perhaps, in the mean time you can consider the following CODE which basically concatenates the INT and the MOD of your P20.8 value (thru some funky code):
TABLE FILE CAR
SUM
COMPUTE SALESCST/D20.8 = IF COUNTRY EQ 'ENGLAND' THEN .24435009 ELSE 10*RDUNIF('D6.4') ;
COMPUTE SALESINT/I1 = INT(SALESCST);
COMPUTE SALESMOD/I8 = ((SALESCST) * 100000000) - (SALESINT * 100000000);
COMPUTE SALESVAL/A24 = EDIT(SALESINT)||','||EDIT(EDIT(SALESMOD),'99');
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
END
DISCLAIMER: This is nothing great. But, if I understand the desireed result, then it'll get the job done.
June 25, 2009, 04:23 AM
ac1
Thank you Doug for your replay.
I have already thought your solution to concatenate the integer and decimal part. This could solve the problem but it is quit annoying for the client to have a numeric field in a text cell. Furthermore, I have a lot of numeric fileds in the report that could be less then 1 and I should write more code...
Has someone saved excel file as "FORMAT EXL2K" in a Mainframe environment? Did you have the same problem that I have?This message has been edited. Last edited by: ac1,
I think that it's a bit annoying as well. But, like I said "It'll get the job done". I normally comment code like this as needing to be redacted and come back to it when time permits. And pass it on as a New Feature Request when possible.
Just for clarification: Your client wants something like ".24435009" to be displayed as "0,24" (zero comma two four) not "0.24"?
June 25, 2009, 10:24 AM
Francis Mariani
Doug, the comma for decimal is Continental Decimal Notation, achieved by
SET CDN=ON
Decimal is comma, thousands separator is dot.
The European way (and Quebec).
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
June 25, 2009, 11:27 AM
Doug
Thanks Francis, for the International clarification on this. I needed some clarification on it
June 25, 2009, 11:47 AM
ac1
Hi Doug, the client wants to see 0,24435009. The comma is the decimal notation, as Francis said.
Anyway, it is strange that with "FORMAT EXCEL" I get 0,24435009 and with "FORMAT EXL2K" I get ,24435009.