Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (O-Q)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
7-7
OPENEDIT
(Superseded by OPENEDIT_) Allocates and initializes data blocks in the EDIT file
segment (EFS) so that the specified file can be accessed later by the IOEdit procedures.
It optionally creates and opens the specified file through the file system.
WRITE^FOLD %10000D
WRITE^PAD %20000D
WRITE^TRIM %4000D
flags-mask, INT(32):value input
max-recordlen, INT:value input
prompt-char, INT:value input
error-file-fcb, INT:ref:* input
error := OPENEDIT ( file-name
,filenum
,[ flags ]
,[ sync-depth ]
,[ write-thru ] );
error, INT returned value
-1 Page-count value is inconsistent.
-2 Page-table tags are out of order.
-3 Page-table tag is outside legal range.
-4 Page-table block number is outside of file.
-5 Page table has duplicate block numbers.
11 File does not exist; indicates that the file does not exist and that the flags parameter
indicates read-only access to the file.
14 Device does not exist; indicates that the device-name part of the file name designates a
device that either does not exist or is not a disk device.
16 File has not been opened, wrong file type; indicates that the file is not an EDIT file (that
is, the file type is not unstructured or the file code is not 101 or 102).