INFDS Open Feedback Example
To specify an INFDS which contains fields in the open feedback section,
you can make the following entries:
- Specify the INFDS keyword on the file description specification with the name of the file information data structure
- Specify the file information data structure and the subfields you wish to use on a definition specification.
- Use information in the IBM® i
Information Center database and file systems
category to determine which fields you wish to include in the INFDS.
To calculate the starting position and length of the subfields of the open
feedback section of the INFDS, use the Offset, Data Type, and Length given
in the Information Center and do the following calculations:
Start = 81 + Offset
Character_Length = Length (in bytes)For example, for overflow line number of a printer file, the Information Center gives:
Offset = 107
Data Type is binary
Length = 2 bytes
Therefore,
Start = 81 + 107 = 188
RPG data type is integer
Length = 5 digits
See subfield OVERFLOW in the example below.