In this section: |
The following features were added as of FOCUS 7.7.09.
Numeric values can be displayed in abbreviated form in terms of thousands, millions, billions, or trillions, using the format options k, m, b, t, and a.
Note:
The following request computes numeric fields that use the display options k, m, b, t, and a.
TABLE FILE WFLITE SUM COGS_US COMPUTE COGS_K/I10k = COGS_US; COGS_M/D20.2m = COGS_US *2000; COGS_B/D20.3b = COGS_US *300000; COGS_T/D20.2t = COGS_US *400000000; COGS_A/D20.1a = IF COGS_US LT 100000 THEN COGS_US ELSE IF COGS_US LT 200000 THEN COGS_US *2000 ELSE IF COGS_US LT 500000 THEN COGS_US *300000 ELSE COGS_US *400000000; BY BRAND ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * GRID=OFF,$ ENDSTYLE END
The output is shown in the following image. COGS_K has format I, which displays with no decimal places. COGS_M, COGS_B, and COGS_T have format D20.2, which displays with two decimal places. COGS_A has format D20.1, which displays with one decimal place.
Certain relational data sources support a data type called STRING to store alphanumeric data that has an unlimited length. This type of data can be mapped to the TX data type. However, text fields have limitations on their use in FOCUS sort and selection phrases.
The format specification for a STRING field has no length specification. The length is determined on retrieval. For example:
FIELD1/STRING
The STRING data type has all of the functionality of alphanumeric data types in FOCUS. The limit to a STRING field value length is 2 GB. It can be propagated to relational data sources that have the STRING data type and to delimited HOLD files, where both the USAGE and ACTUAL formats are generated as STRING.
|
Information Builders |