Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Appendix B Display Masks : Display Masks

Display Masks
Screen fields with semantic type C (count), D (date), I (identifier), or Q (quantity) and fields that have syntax P (packed) or B (binary) can have display masks applied to them. You can apply two kinds of display masks:
Numeric Display Masks
Numeric display masks can be applied to a field with a semantic type C (count), I (identifier), or Q (quantity) and syntax B (binary) or P (packed). You use a numeric display mask to print numeric fields according to common conventions, for example, 1,000 or $1,000.00. For example, a field defined as ZZZZ9V.99 converts to 10000.00.
Display Mask Entries
For numeric fields, you can make the following display mask entries:
Type in digit placeholders. The digit placeholders reserve display spaces for the numeric digits. The digit placeholders you define must be sufficient to hold the largest value that is processed for your field. You can define a maximum of 15 digit placeholders.
If negative data can appear, include the negative sign with the mask. Examples of acceptable masks are -ZZZZZ9V.99 and $ZZZZ9V.99.
A non-numeric, non-digit character is required for a decimal separator display character (for example, 999V.9 could print as 123.4).
Typed into the left of the decimal point.
Typed into the right of the decimal portion.
Characteristics of Digit Placeholders
You can use the following alphanumeric characters to represent digit placeholders. Each character has a specific representation:
Date Display Masks
The following table shows valid date display mask components for fields with semantic type D (date) and syntax B (binary).
 
/  \  ;  :  ,  .  *  -  blank
A week is defined to begin on a Monday and end on the following Sunday. However, January 1st always begins week one, regardless of where it falls in the week, and week two starts on the following Monday.
An input in YY/MM/DD of 01/01/01 results in a date from 1901. To avoid confusion, you should specify the century in your dates.
Do not make display masks longer than the field length. If the display mask is longer than the field length, the screen server takes the formatted value and displays it in left to right order, in the desired display length. Extra formatted digits are dropped.
You can specify just a portion of a date field within your mask (for example, entering only MMMM displays the month). Partial date occurrences cannot be accessed using a GET or FORALL statement, as the data cannot be interpreted as a complete date. At least the year portion of a date must be present in the mask to make it accessible to these statements.
See Also
TIBCO Object Service Broker Shareable Tools for information on the $PIC tool (the display mask specifications you can make are based on this tool) and the Date tools for information on date display masks.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved