LNK$
- Purpose
- Contains the attributes of the link in use by the caller. This array enables the called method to derive the current context and allows the data context to be restored when control returns to the calling object.
Except for entry LNK$[0] the called method must ensure that this array is not modified before it is returned to the caller, or unpredictable behavior may result.
- Used By
- CONNECT METHOD
Contents
| LNK$[0] | Link message. | |
|---|---|---|
| On entry, contains one of the following: | ||
| “A” | Add. | |
| “U” | Update. | |
| “D” | Delete. | |
| On return must contain one of the following: | ||
| “.” | Normal exit Requested I/O will be completed. | |
| Null | Error occurred. Requested I/O will not be completed and an “I/O Not Completed” message will be displayed. | |
| “ERROR [help-code]” | Requested I/O will not be completed. The message specified by the help code will be displayed and an error will be returned to the caller. If help code is not specified no error message will be displayed and an error condition will be returned to the caller. | |
| “EXIT” | No error message will be displayed and the requested I/O will not be completed by the OPENworkshop general I/O process. However, it is assumed that the I/O trigger did the I/O and no abnormal condition is assumed. | |
| LNK$[1] | Link name. | |
| LNK$[2] | Link header. | |
| LNK$[4] | Terminal access codes. | |
| LNK$[5] | Operator access codes. | |
| LNK$[6] | Data file name (after suffix substitution). | |
| LNK$[7] | Sort file name (after suffix substitution). | |
| LNK$[8] | Text file name (after suffix substitution). | |
| LNK$[9] | (1,1) | Primary key length including preset parts. |
| (2,n) | Primary key data name numbers not including preset parts. | |
| LNK$[10] | Data name delete value list. | |
| LNK$[11] | File type: | |
| I | Indexed. | |
| S | Sort. | |
| D | Direct. | |
| C | CISAM | |
| LNK$[12] | (1,1) | Number of sort defs. |
| (2,1) | Length of sort defs entry. | |
| (3,n) | Sort definitions. | |
| LNK$[13] | Sort definition table. | |
| LNK$[14] | Primary key prefix. | |
| LNK$[15] | Primary key suffix. | |
| LNK$[16] | Generated link I/O program name. | |
| LNK$[17] | Mandatory data name number table. | |
| LNK$[18] | Preprocess table: | |
| (1,1) | Data name number. | |
| (2,1) | Function key value. | |
| LNK$[19] | Audit data name number table. | |
| (1,1) | Data name number. | |
| (2,1) | Type audit. | |
| (3,8) | Audit file name. | |
| (11,n) | Next data name audit info. | |
| LNK$[20] | Last audit ADD key. | |
| LNK$[21] | Generated I/O program. | |
| LNK$[22] | List of text field IDs. | |
| LNK$[23] | Data file name (before suffix substitution). | |
| LNK$[24] | Sort file name (before suffix substitution). | |
| LNK$[25] | Text file name (before suffix substitution). | |
| LNK$[26] | Operator supplied sorts. |
From the OPENworkshop Reference, version 8.9.1. Open this page in the PDF