RPG/400 Help

Positions 44-51 (Field Location)

Entry
Explanation
Two 1- to 4-digit numbers
Beginning of a field (from) and end of a field (to).

This entry describes the location and size of each field in the input record. Positions 44 through 47 specify the location of the field's beginning position; positions 48 through 51 specify the location of the field's end position. To define a single-position field, enter the same number in positions 44 through 47 and in positions 48 through 51. Numeric entries must be right-adjusted; leading zeros can be omitted.

The maximum number of positions in the input record for each type of field is as follows:

Number of Positions
Type of Field
30
Zoned decimal numeric (30 digits)
16
Packed numeric (30 digits)
4
Binary (9 digits)
256
Character (256 characters)
31
Numeric with leading or trailing sign (30 digits)
9999
Data structure.

For arrays, enter the beginning position of the array in positions 44 through 47 and the ending position in positions 48 through 51. The array length must be an integral multiple of the length of an element. The From-To position does not have to account for all the elements in the array. The placement of data into the array starts with the first element.


[ Top of Page | Previous Page | Next Page | Table of Contents ]