July 2013 8.5 Files 1413
Module 9246 Write to a field in a table
Open the table with the file name extension .TAB or .P with Module 9240, and 
not in the buffered mode.
The field defined by the column name and line number is overwritten.
If a line that does not yet exist is transferred, the file is filled with blank spaces 
up to the defined line.
The module transfers a string.
Call:
PS D <File handle>
from Module 9240
PS B/W/D/K <Line>
–1: Next vacant line
0 to 65 535
PS B/W/D/K/S<String number, column name>
PS B/W/D/K/S<String number, contents to be written>
CM 9246
Error code:
Marker Value Meaning
M4203 0 Field was written to
1 Error code in W1022
W1022 1 Line does not exist in table
2 Incorrect "file handle" or table was opened in "buffered" 
mode
3 Impermissible string numbers
6 Table is write-protected
7 Not a numerical field (Module 9256)
11 The transferred value cannot be saved to the 
addressed field. Incorrect format
20 NCMACRO.SYS does not exist
29 The opened file is not a table with the extension .TAB 
or .P
30 Column name not found