Information block (FPIB) for field procedures
The field procedure information block communicates general information to a field procedure.
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:
| Name | Hex offset | Data type | Description |
|---|---|---|---|
| FPBFCODE | 0 | Signed 2-byte integer | Function code
|
| 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 |