Data Description | Size on Screen | Comment |
---|---|---|
X(5) | 5 characters | |
N(5) | 10 characters | Each PIC N character occupies 2 bytes in memory. |
G(5) | 10 characters | Each PIC G character occupies 2 bytes in memory. |
9(5) | 5 characters | |
99.99 | 5 characters | |
Z(4)9 | 5 characters | |
99V99 | 4 characters | V is an implied decimal point and so is not displayed on the screen. |
S9(4) | 4 characters | The sign is implied and so is not displayed on the screen. |
S9(4) SIGN LEADING SEPARATE | 5 characters | |
9(4) COMP | 2 characters | COMP fields are stored in binary; a 9(4) COMP field occupies 2 bytes in memory |
As you can see from the above examples, it is only really sensible to display fields defined as USAGE DISPLAY which do not contain implied signs or decimal points. When the field is displayed, it is copied byte-for-byte from the data item onto the screen at the required position.
ANSI DISPLAY operations convert non-USAGE DISPLAY numeric items to USAGE DISPLAY before displaying.