Focal Point
[CLOSED] IN-RANGES-OF Default for Nulls

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

April 04, 2011, 11:55 AM
grasshopper
[CLOSED] IN-RANGES-OF Default for Nulls
How do I replace the IN-RANGES-OF null value default = '***-***' with something like 'NS'?

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


WebFOCUS 7.702
April 04, 2011, 12:28 PM
<JG>
quote:
IN-RANGES-OF null value default =

There is no such thing that I've ever seen.

A simple code example of what you are trying to do might help us help you.
April 04, 2011, 07:30 PM
grasshopper
TABLE FILE A_DETAIL
BY LOWEST A_DETAIL.A_DETAIL.RESPONSE_CD
BY LOWEST A_DETAIL.A_DETAIL.SCORE_NBR IN-RANGES-OF 50
ON TABLE NOTOTAL
END

Produces...

RESPONSE_CD SCORE_NBR
1 *** - ***
0 - 49
50 - 99
100 - 149
200 - 249
400 - 449
2 *** - ***
0 - 49
50 - 99
100 - 149
3 *** - ***

How do I get *** to be 'NS'?
Thanks


WebFOCUS 7.702
April 05, 2011, 05:22 PM
Waz
This is wierd, looks like the range has overflowed.

Have you determined what the source data is for SCORE_NBR for the **** - **** ?


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!

April 06, 2011, 12:40 PM
<JG>
Actually the request is not valid (but that looks like wrong output anyway)

Your request has to have something to apply the range to
for example

TABLE FILE CAR
SUM CNT.MODEL
BY LOWEST SEATS
BY LOWEST SALES IN-RANGES-OF 1000
ON TABLE NOTOTAL
END

It appears to be 7.7.0.2 specific as it works fine in earlier releases.

I would raise a case with IBI.

The really irritating thing is that it does not display the range step where no data exists.
April 06, 2011, 05:33 PM
Waz
I could simulate the **** with setting the size of the numeric to a smaller value, but not where it puts the *** at the first range.

Can you repro with one of the sample files ?


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!

April 06, 2011, 07:27 PM
grasshopper
'*** - ***' is the default for when the source value is NULL. I could make a second pass. Over the result to convert the that string to 'NS' but I was wondering if there was more control over the IN-RANGES-OF function.


WebFOCUS 7.702
April 07, 2011, 05:04 PM
Waz
I don't believe there is a way to control it, apart from creating the ranges your self.


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!