Information block (FPIB) for field procedures

The field procedure information block communicates general information to a field procedure.

Begin program-specific programming interface information.

The information block tells what operation is to be done, allows the field procedure to signal errors, and gives the size of the work area. It has the following formats:

Table 1. Format of FPIB, defined in copy macro DSNDFPPB
Name Hex offset Data type Description
FPBFCODE 0 Signed 2-byte integer Function code
Code
Means
0
Field-encoding
4
Field-decoding
8
Field-definition
FPBWKLN 2 Signed 2-byte integer Length of work area; the maximum is 32767 bytes.
FPBSORC 4 Signed 2-byte integer Reserved
FPBRTNC 6 Character, 2 bytes Return code set by field procedure
FPBRSNCD 8 Character, 4 bytes Reason code set by field procedure
FPBTOKPT C Address Address of a 40-byte area, within the work area or within the field procedure's static area, containing an error message
End program-specific programming interface information.