Guardian Programming Reference Summary for pTAL and TAL

SET^FILE Operations
Guardian Programming Reference Summary for pTAL and TAL522631-001
10-8
Table 10-2. SET^FILE Operations That Set Addresses
<operation>
Parameter
(Required)
Description of Operation
Requested
<new-value>
Parameter
Entered
(Optional)
<old-value>
Parameter
Entered
(Optional)
State
of File
ASSIGN^
FILENAME
Specifies the physical name
of the file to be opened. For
example:
CALL SET^FILE (in^file,
ASSIGN^FILENAME,@in^
filename);
@filename filename
FOR 12 words
Closed
ASSIGN^
LOGICAL
FILENAME
Specifies the logical name of
the file to be opened. The
logical-filename
parameter must be encoded as
follows:
Byte NumberContents
[0] len
[1] through [7] logical-
filename
len is the length of the
logical file name {0:7}.
@logical-
filename
@logical-
filename
FOR 4 words
Closed
SET^DUPFILE Specifies a duplicate file for
the file. This is a file where
data read from file-fcb is
printed. The default action is
no duplicate file. For
example:
CALL
SET^FILE(in^file,SET^DUP
FILE, @out^file);
@new-dup-
file-fcb
@dup-
file-fcb
Open
SET^
ERRORFILE
Sets error reporting file for all
files. Defaults to home
terminal. If the error
reporting file is not open
when needed by the SIO
procedures, it is opened for
the duration of the message
printing and then closed.
@new-
error-
file-fcb
@error-
file-fcb