Focal Point
[SOLVED] Right space for Nodata

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

August 26, 2019, 06:25 AM
venkatesh emandi
[SOLVED] Right space for Nodata
Below is my code snippet to produce right blank space for nodata, but it was generating dots instead of blank spaces for nodata case.

-SET &ND='$0.00' | HEXBYT(168,'A1');
SET NODATA='&ND'
-*SET NODATA='$0.00'

DEFINE FILE CAR
DEALERCOST/D12.2B=DEALER_COST;
SORTCAR/A2=
IF CAR EQ 'FORD'
THEN
'10'
ELSE
IF CAR EQ 'AUDI'
THEN
'15'
ELSE
IF CAR EQ 'DATSUN'
THEN
'20'
ELSE
'99';
END
TABLE FILE CAR
SUM DEALERCOST/D12.2C
ACROSS COUNTRY
FOR SORTCAR
10 AS 'FORD (NO DATA IN FILE)' LABEL FORD OVER
15 AS 'AUDI' LABEL AUDI OVER
20 AS 'DATSUN' LABEL DATSUN OVER
99 AS 'ALL OTHER' LABEL ALLOTHER
ON TABLE PCHOLD FORMAT XLSX
END

  

This message has been edited. Last edited by: FP Mod Chuck,
August 26, 2019, 06:27 AM
venkatesh emandi
I would like to create blank space right of $0.00 which is a nodata case
August 26, 2019, 02:10 PM
FP Mod Chuck
Venkatesh

When I run you code I see a " after the $0.00 if I substitute 32 (which should be a space) for 168 in your HEXBYT command it doesn't show a space after the $0.00. I suggest you open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 27, 2019, 02:36 AM
Tony A
The alternative to HEXBYT(32,'A1') for a blank space is HEXBYT(160,'A1').

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 
August 27, 2019, 03:16 AM
venkatesh emandi
Thankyou Tony :-) I could able to create blank space with HEXBYT(160,'A1').