HP 3000 Manuals

Field Length(Columns 49-51) [ HP RPG/iX Reference Manual ] MPE/iX 5.0 Documentation


HP RPG/iX Reference Manual

Field Length(Columns 49-51) 

The field length field specifies the number of characters in the Result
Field.  This field is optional when the Result Field is defined elsewhere
in the program.  (If it is already defined, the number that you enter
must be the same as the original definition.)

          Table 8-20.  The Field Length Field 
--------------------------------------------------------------------------------------------
|                           |                                                              |
|       Columns 49-51       |                         Description                          |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| 1-256                     | The length of the alphanumeric Result Field.                 |
| (right-justified,         |                                                              |
| leading zeros are not     |                                                              |
| required)                 |                                                              |
|                           |                                                              |
| 1-15                      | The length of the numeric Result Field.                      |
| (right-justified,         |                                                              |
| leading zeros are not     |                                                              |
| required)                 |                                                              |
|                           |                                                              |
| blank                     | This is an alphanumeric or numeric field, described          |
|                           | elsewhere in the program.                                    |
|                           |                                                              |
--------------------------------------------------------------------------------------------

Make sure that the Result Field is long enough for the largest possible
result.  If it is too small, excess significant digits are truncated[REV
BEG] (or for numeric fields, the overflow trap may be initiated).[REV
END] If you specify rounding in the Half Adjust Field (column 53), the
number that you enter is the length of the result after rounding.



MPE/iX 5.0 Documentation