HP 3000 Manuals

Columns 13-17 Largest Sum [ HP RPG/XL Utilities-Part 1 XSORT ] MPE/iX 5.0 Documentation


HP RPG/XL Utilities-Part 1 XSORT

Columns 13-17 
Largest Sum 

Columns 13 through 17 specify the largest sum of control field lengths of
any record section (in bytes).

The entry requires the following calculations:

a.  Compute the lengths of all control fields on Field Description specs
    (when column 7 is N, O, or F--see table below).  Sum these totals
    separately for each record section (see definition of "Sections" on
    page 5-3).

b.  Place the largest of these sums in columns 13-17.  The entry cannot
    exceed 256.

Additional information concerning this entry can be found under column 7
of the Field Description Specifications.  Also, see figure 2-1, in which
the largest control field sum of two record sections is calculated and
the total entered in columns 13-17.

In computing the total lengths of control fields and work records the
following guidelines should be noted:

----------------------------------------------------------------------------------------------
|              |              |                                                              |
|              | If Column 7  |                  Add This To Total Length:                   |
|              |  Entry Is:   |                                                              |
|              |              |                                                              |
----------------------------------------------------------------------------------------------
|              |              |                                                              |
| Control      |    N or O    | Field length*                                                |
| fields       |              |                                                              |
|              |              |                                                              |
|              |      F       |   1   If column 19 (continuation) is blank.                  |
|              |              | 0   If column 19 (continuation) is non-blank.                |
|              |              |                                                              |
----------------------------------------------------------------------------------------------
|              |              |                                                              |
| Data fields  |      D       |   Field lengthIf column 8 is blank.                          |
|              |              | 1           If column 8 contains V.                          |
|              |              |                                                              |
----------------------------------------------------------------------------------------------

*   Actual length of the field as defined by its input record "location"
    (columns 9-16).

[]
Figure 2-1. Calculating Control Field Length


MPE/iX 5.0 Documentation